在Code :: Blocks中找不到iostream文件 [英] iostream file not found in Code::Blocks

查看:435
本文介绍了在Code :: Blocks中找不到iostream文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

截图

我确实按照某些答案中的建议使用了<iostream>,但是它仍然表示缺少iostream.

I did use <iostream> as recommended in some answers, but it still says iostream is missing.

推荐答案

1.您已将项目创建为c程序,请在代码块中选择c ++ (参考屏幕截图)

1.you have created the project as c program please select c++ in code blocks (ref screen shot)

2.仅下载并安装具有名称的文件 代码块mingw-setup.exe.(因为mingw编译器将自动安装).

2.Download and install only the file with name codeblocks mingw-setup.exe.(since mingw complier will be installed automatically).

3.尝试重新安装代码:阻止

3.try reinstalling code:blocks

您无需在cout之前使用std

and you need not use std before cout

因为您已经使用了using命名空间std;声明

since you have used the using namespace std; statement

查看屏幕截图

希望它能起作用!

这篇关于在Code :: Blocks中找不到iostream文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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