c++ - How to extern a global two-dimensional array? -
i want extern global two-dimensional array:
float buffer[10][10];
i know "extern float buffer[];" work array single dimension, not know how extern array 2 dimensions.
thanks in advance.
you declare as:
in header file put:
extern float buffer[10][10];
in one source file put:
float buffer[10][10];
Comments
Post a Comment