c++中[Error] 'cin' was not declared in this scope 是什么意思

日期:2021-07-16 17:14:40 人气:1

c++中[Error] 'cin' was not declared in this scope 是什么意思

c++中[Error] 'cin' was not declared in this scope的意思是:cin(标准输入流)未申明。

在C++中cin:标准输入流、cout:标准输出流、cerr:错误的标准输出流、clog:用于记录的标准输出流的引用,需要需要#include<iostream>头文件来声明。

作为iostream(.h)库的一部分,头文件<iostream(.h)>声明了一些用来在标准输入输出

    A+
热门评论