|
#include <stdio.h>
struct nod {
float x,y;
};
int main(void)
{
struct nod nodd1;
nodd1.x = 0.0;
nodd1.y = 0.0;
//int a = 0;
return 0;
}
我注释了int a = 0这一行的话,编译能通过, 如果不注释的话编译报错,报错如下:
main.c
F:\Test_c\main.c(13) : error C2143: syntax error : missing ';' before 'type'
Error executing cl.exe.
main.obj - 1 error(s), 0 warning(s)
编译器为 VC6.0
不知道为什么,小弟是菜鸟,请高手不吝指教。谢谢 |
|