主题:我下载了一个VC++6.0但是编译时出现发下...对着课本输入源程序都不行,那个高手指点指点.谢谢了
教材课本上的源程序:
// the first c++ program
#include<iostream.h>
int main()
{
int a,b,sum;
a=3;
b=4;
sum=a+b;
cout<<a<<'+'<<b<<'='<<sum<<endl;
return 0;
}
编译出现的错误:
--------------------Configuration: 练习 - Win32 Debug--------------------
Compiling...
两数之和.cpp
c:\program files\microsoft visual studio\myprojects\练习\两数之和.cpp(13) : fatal error C1010: unexpected end of file while looking for precompiled header directive
执行 cl.exe 时出错.
练习.exe - 1 error(s), 0 warning(s)
// the first c++ program
#include<iostream.h>
int main()
{
int a,b,sum;
a=3;
b=4;
sum=a+b;
cout<<a<<'+'<<b<<'='<<sum<<endl;
return 0;
}
编译出现的错误:
--------------------Configuration: 练习 - Win32 Debug--------------------
Compiling...
两数之和.cpp
c:\program files\microsoft visual studio\myprojects\练习\两数之和.cpp(13) : fatal error C1010: unexpected end of file while looking for precompiled header directive
执行 cl.exe 时出错.
练习.exe - 1 error(s), 0 warning(s)