Next: Automatic indenting
Up: C++/C
Previous: The hacking of printf
To declar a multi-dimension array, the syntax is
int (*buf)[w] = new int[h][w];
For CC, w has to be a constant,
but for g++ either the h or w can be variable
and assigned at run-time.
Wei Lu
2007-11-06