奇怪的错误; IOSTREAM突然“失去”了>>运算符(不与'std :: cin>>'一起运行用于用户输入) [英] Strange Error; IOSTREAM has suddenly "lost" the >> operator (doesn't run with 'std::cin >>' for user input)

查看:108
本文介绍了奇怪的错误; IOSTREAM突然“失去”了>>运算符(不与'std :: cin>>'一起运行用于用户输入)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我是初学者,但有一个严肃的问题。如果这是一个无聊的修复,我道歉。我使用Visual Studio,当我在下面键入以下文本并运行程序时,出现以下错误:

Hello,

I am a noobi beginner, but have a serious question. I apologize if this is a boring fix. I use Visual Studio, and when I type the following text below and run the program, the following error comes up:

"有构建错误。你想继续并运行上一次成功的构建吗?"

"There were build errors. Would you like to continue and run the last successful build?"

我输入NO并且输出选项卡显示:

I type NO and the Output tab shows:

这是继续通过整个IOSTREAM文件(我通常用小写字母输入:): 

This goes on through the entire IOSTREAM file (which I knkow is usually typed in lower-case : ) ) 

当我解剖iostream文件时,操作数>>没有出现。我该怎么办?

非常感谢!

推荐答案

>我是一名初学者,但有一个严肃的问题。如果这是一个无聊的修复,我道歉。我使用Visual Studio,当我在下面键入以下文本并运行程序时,会出现以下错误:

>I am a noobi beginner, but have a serious question. I apologize if this is a boring fix. I use Visual Studio, and when I type the following text below and run the program, the following error comes up:

通过添加#include<来自我的示例代码编译正常。串GT;同时使用VS2017和2019年。

Your sample code compiles fine for me with the addition of #include <string> with both VS2017 & 2019.

戴夫


这篇关于奇怪的错误; IOSTREAM突然“失去”了&gt;&gt;运算符(不与'std :: cin&gt;&gt;'一起运行用于用户输入)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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