Visual C ++无法打开包含文件'iostream' [英] Visual c++ can't open include file 'iostream'

查看:114
本文介绍了Visual C ++无法打开包含文件'iostream'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是C ++的新手。我刚开始!我在Visual c ++ 2010 Express版本上尝试了代码,但收到以下代码错误消息。

I am new to c++. I just started! I tried a code on visual c++ 2010 Express version but i got the following code error message.


------ Build started: Project: abc, Configuration: Debug Win32 ------
  ugo.cpp
c:\users\castle\documents\visual studio 2010\projects\abc\abc\ugo.cpp(3): fatal error C1083: Cannot open include file: 'iostream': No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

这是代码

// first.cpp -- displays a message


#include <iostream>   // a PREPROCESSOR directive

int main(void)        // function header
{             // start of a function body
  using namespace std;
  cout << "Come up and C++ me sometime.\n";  // message
  // start a new line
  cout << "Here is the total: 1000.00\n";
  cout << "Here we go!\n";
  return 0;
}


推荐答案

替换

#include <iostream.h>

using namespace std;

#include <iostream>

这篇关于Visual C ++无法打开包含文件'iostream'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆