VC++6.0里面源码如下
#include <iostream>
class a1
{
public:
char x,y,z;
int main()
{
cout<<"请输入整数"<<end1;
cin>>x;
cout<<x<<end1;cin>>y;
cout<<y<<end1;
z=x+y;
cout>>x>>"+">>y>>"=">>z;
return 0;
}
报错如下
--------------------Configuration: j - Win32 Debug-------------------
Compiling...
m.cpp
d:\c\计算器\m.cpp(19) : fatal error C1004: unexpected end of file found
执行 cl.exe 时出错.
j.exe - 1 error(s), 0 warning(s)
怎搞?????I
#include <iostream>
class a1
{
public:
char x,y,z;
int main()
{
cout<<"请输入整数"<<end1;
cin>>x;
cout<<x<<end1;cin>>y;
cout<<y<<end1;
z=x+y;
cout>>x>>"+">>y>>"=">>z;
return 0;
}
报错如下
--------------------Configuration: j - Win32 Debug-------------------
Compiling...
m.cpp
d:\c\计算器\m.cpp(19) : fatal error C1004: unexpected end of file found
执行 cl.exe 时出错.
j.exe - 1 error(s), 0 warning(s)
怎搞?????I