为什么我的c++程序无法build?

来源:百度知道 编辑:UC知道 时间:2024/06/04 13:40:57
我检查过文件,问题老是在#include <iostream>上,我看不出有什么不对啊.
#include <iostream>

using namespace std;

int main()
{
float s1,s2;
cout << "Enter temperatures in Celsius:" <<endl;
cin >> s1;
cout << "The equivalent Fahrenheit temperature:" << s1*9/5+32 << endl;

return 0;
}
错误如下

没问题,你把错误发上来,在我的C++上运行正常……warning很正常可以忽略,没有error就可以了

打下c++补丁

#include "iostream.h"

我的可以build

程序没问题,你的C++有问题吧,或者你重建一下,再或者把Debug文件夹中的东西删除了再连接试一下。