fork(2) download
  1. #include <iostream>
  2.  
  3. template <typename T, std::size_t Dim1, std::size_t Dim2>
  4. void f(T(&)[Dim1][Dim2])
  5. {
  6. std::cout << Dim1 << ", " << Dim2 << "\n";
  7. }
  8.  
  9. int main()
  10. {
  11. char mazeEasy[19][38], mazeMed[41][81], mazeHard[72][98];
  12. f(mazeEasy);
  13. f(mazeMed);
  14. f(mazeHard);
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 2728KB
stdin
Standard input is empty
stdout
19, 38
41, 81
72, 98