这到底是什么地方有错误???谢谢!

houguangyun 2007-01-25 08:14:26
// c4.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream.h>
void main()
//int main(int argc, char* argv[])
{
int a,b;
cout<<"请输入两个整形数:";
cin>>a>>b;
if(a!=b)
if(a>b)
cout<<a<<">"<<b<<endl;
else
cout<<a<<"<"<<b<<endl;
else
cout<<a<<"="<<b<<endl;

}
编译完后,有下面的提示:
--------------------Configuration: c4 - Win32 Debug--------------------
Compiling...
c4.cpp
f:\hgy\c4\c4.cpp(4) : fatal error C1083: Cannot open precompiled header file: 'Debug/c4.pch': No such file or directory
执行 cl.exe 时出错.

c4.obj - 1 error(s), 0 warning(s)
...全文
253 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
user_csc 2007-01-26
  • 打赏
  • 举报
回复
#include <iostream.h>
void main()
{
int a,b;
cout<<"ÇëÊäÈëÁ½¸öÕûÐÎÊý£º";
cin>>a>>b;
if(a!=b)
if(a>b)
cout<<a<<">"<<b<<endl;
else
cout<<a<<"<"<<b<<endl;
else
cout<<a<<"="<<b<<endl;

}
jixingzhong 2007-01-25
  • 打赏
  • 举报
回复
工程设置错误~

Cannot open precompiled header file: 'Debug/c4.pch': No such file or directory
kangji 2007-01-25
  • 打赏
  • 举报
回复
在工程属性的设置里面把precompiled header的勾去掉
whoho 2007-01-25
  • 打赏
  • 举报
回复
Project->setting->c/c++选项页
在category下拉列表中选Precompiled Headers
然后勾选 Not using precompiled headers
whoho 2007-01-25
  • 打赏
  • 举报
回复
VC预编译头文件的问题
ma100 2007-01-25
  • 打赏
  • 举报
回复
#include "stdafx.h"
#include <iostream>
using namespace std;

int main(int argc, char* argv[])
{
int a,b;
cout<<"请输入两个整形数:";
cin>>a>>b;
if(a!=b)
if(a>b)
cout<<a<<">"<<b<<endl;
else
cout<<a<<"<"<<b<<endl;
else
cout<<a<<"="<<b<<endl;
return 0;

}

33,319

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 新手乐园
社区管理员
  • 新手乐园社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧