vc中的char类型的三维数组我定义为char line[360][360][360]很明显已经溢出,但有没有一个更好的模型思路能够代替这个数组做到管理其中元素
定义在堆上
char * line = new char line[360][360][360];
定义在堆上
char * line = new char line[360][360][360];
struct lineElement
{
int x;
int y;
char line[360];
lineElement* next;
};
lineElement *line = new lineElement;