新手在VC6。0里照书打的程序为什么总是报错
时间:08-17
整理:3721RD
点击:
#include <stdio.h>
int sum(int x, int y);
void main()
{
int a,b,sumnumber;
a=100;b=200;
sumnumber=sum(a,b);
printf("sum is %d\n",sumnumber);
}
int sum(int x,int y)
{
int z;
z=x+y;
return (z);
}
下面是错误报告 fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe. 请问是哪出问题 谢谢
int sum(int x, int y);
void main()
{
int a,b,sumnumber;
a=100;b=200;
sumnumber=sum(a,b);
printf("sum is %d\n",sumnumber);
}
int sum(int x,int y)
{
int z;
z=x+y;
return (z);
}
下面是错误报告 fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe. 请问是哪出问题 谢谢
int a,b,sumnumber;最后的分号,是中文分号,也成英文就可以:
int a,b,sumnumber;