这段c语言是什么意思,还有他为什么抱错?
#include<stdio.h>void main()
{
int x;
for (x=5;x<12;x+=2){
switch(x-1){
case 4:printf("%d\n",x);
case 7:printf("%d\n",2*x+1);
case 10:printf("%d\n",3*x-1);break;
default:printf("default\n");
}
}
--------------------Configuration: aaa11 - Win32 Debug--------------------
Compiling...
aaa11.cpp
D:\c语言练习上机练习\第20章\第20章\aaa\aaa11.cpp(13) : fatal error C1004: unexpected end of file found
执行 cl.exe 时出错.
aaa11.obj - 1 error(s), 0 warning(s)
请有经验的来谈谈