VC6中这个程序错误在哪里
#include<iostream.h>usingnamespacestd;intmain(){cout<<"Pleaseinputthedividend.";inta;...
#include <iostream.h>
using namespace std;
int main()
{
cout<<"Please input the dividend.";
int a;
cin>>a;
cout<<"Please input the divisor.";
int b;
cin>>b;
int q=a/b;
int r=a%b;
cout<<a<<"/"<<b<<"="<<q<<"…"<<r;
return 0;
}
编译器说是最后一个大括号的问题
错误原因:
d:\vchh\myprojects\lab\lab1.cpp(17) : fatal error C1010: unexpected end of file while looking for precompiled header directive 展开
using namespace std;
int main()
{
cout<<"Please input the dividend.";
int a;
cin>>a;
cout<<"Please input the divisor.";
int b;
cin>>b;
int q=a/b;
int r=a%b;
cout<<a<<"/"<<b<<"="<<q<<"…"<<r;
return 0;
}
编译器说是最后一个大括号的问题
错误原因:
d:\vchh\myprojects\lab\lab1.cpp(17) : fatal error C1010: unexpected end of file while looking for precompiled header directive 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询