fork download
  1. template <class Type, int SIZE>
  2. class Array
  3. {
  4. Type arr[SIZE]; // 静的メモリが確保できる!
  5. public:
  6. Array() {}
  7. };
  8.  
  9. int main() {
  10. Array<int, 100> array;
  11. return 0;
  12. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty