本帖最后由 bubuatt 于 2014-3-21 13:02 编辑
- #include <stdio.h>
- void main(){
- struct RankRecord{
- int no;//4
- char *name;//8
- int score;//4
- };
- struct RankRecord records[3]={
- {1,"jack",5000},
- {2,"rose",500},
- {3,"bru",300}
- };
- for(int i=0;i<3;i++){
- printf("%d\t%s\t%d\n",records[i].no,records[i].name,records[i].score);
- }
- }
复制代码 D:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\asdasdasd.cpp(17) : error C2018: unknown character '0xa1'
D:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\asdasdasd.cpp(17) : error C2018: unknown character '0xa1'
D:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\asdasdasd.cpp(17) : error C2018: unknown character '0xa1'
D:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\asdasdasd.cpp(17) : error C2018: unknown character '0xa1'
错误一直显示求解,按照老师写的编译的,怎么我的老师出错
|
|