求助一个二维数组赋值的问题
我GOOGLE了很多论坛...找不到问题所在啊...所以只好来求助了...谢谢大家了const int MAXNODES=23;
const int PREFIX=100;
int TRAFFIC[23][100];
TRAFFIC[1][1]=10, TRAFFIC[2][2]=20, TRAFFIC[3][3]=30;
因为我的每维数量太大...所以只好选有值的那些来赋值...但是这个方法老有奇怪的错误存在:
error C2501:'TRAFFIC' : missing storage-class or type specifiers
error C2369: 'TRAFFIC' : redefinition; different subscripts
see declaration of 'TRAFFIC'
error C2440: 'initializing' : cannot convert from 'const int' to 'int [1][1]'
There are no conversions to array types, although there are conversions to references or pointers to arrays
There are no conversions to array types, although there are conversions to references or pointers to arrays
其他的也都是类似的错误
谢谢大家了....在线等着嘞