二维数组赋初值,出现 error C2078: too many initializesr错误,高手帮忙解决。
char a[6][9]={{'_',' ','_','_',' ','_','_','_','_','_'},{'|',' ',' ',' ','|','|','|',' ','|','|'},{'|','|','|','|','|',' ',' ','|','|','|'},{' ',' ','_','_','_','_','_',' ','_','_'},{'|',' ','|',' ',' ',' ','|',' ','|',' '},{'|','|',' ','|','|','|','|','|','|','|'},{'_',' ','_','_',' ','_','_',' ','_','_'}};
定义二维数组存放横线,竖线,空格。结果是error C2078: too many initializesrError
executing cl.exe.请高手指点。非常感激。
[ 本帖最后由 heshiyuan 于 2009-11-17 22:54 编辑 ]