主题:VC++2005做MFC的时候怎么初始化CString啊
定义如下数组,怎么初始化啊,
;总是提示有错误[code=c]
CStringArray stuinfo[10];
stuinfo[0]={"070341140","A","天津东丽","022-123456","070341A"};
stuinfo[1]={"070341141","B","天津东丽","022-123456","070341A"};
stuinfo[2]={"070341142","C","天津东丽","022-123456","070341A"};
stuinfo[3]={"070341143","D","天津东丽","022-123456","070341A"};
stuinfo[4]={"070341144","E","天津东丽","022-123456","070341A"};
stuinfo[5]={"070341145","F","天津东丽","022-123456","070341A"};
stuinfo[6]={"070341146","G","天津东丽","022-123456","070341A"};
stuinfo[7]={"070341147","H","天津东丽","022-123456","070341A"};
stuinfo[8]={"070341148","I","天津东丽","022-123456","070341A"};
stuinfo[9]={"070341149","J","天津东丽","022-123456","070341A"};
[/code]错误是这样的error C2440: 'initializing' : cannot convert from 'const char [10]' to 'int'
;总是提示有错误[code=c]
CStringArray stuinfo[10];
stuinfo[0]={"070341140","A","天津东丽","022-123456","070341A"};
stuinfo[1]={"070341141","B","天津东丽","022-123456","070341A"};
stuinfo[2]={"070341142","C","天津东丽","022-123456","070341A"};
stuinfo[3]={"070341143","D","天津东丽","022-123456","070341A"};
stuinfo[4]={"070341144","E","天津东丽","022-123456","070341A"};
stuinfo[5]={"070341145","F","天津东丽","022-123456","070341A"};
stuinfo[6]={"070341146","G","天津东丽","022-123456","070341A"};
stuinfo[7]={"070341147","H","天津东丽","022-123456","070341A"};
stuinfo[8]={"070341148","I","天津东丽","022-123456","070341A"};
stuinfo[9]={"070341149","J","天津东丽","022-123456","070341A"};
[/code]错误是这样的error C2440: 'initializing' : cannot convert from 'const char [10]' to 'int'