返回信息流using std::istream;
int main(){
istream is;
}
这句话为什么错了呢,编译器说的是:
“std::basic_istream<_Elem,_Traits>”: 没有合适的默认构造函数可用
看不懂,新手小白球版上大牛帮忙啊[ema11]
这是一条镜像帖。来源:北邮人论坛 / cpp / #80773同步于 2014/7/12
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖
求助,关于istream
NM999
2014/7/12镜像同步5 回复
订阅后,新回复会通过你的通知中心匿名送达。
5 条回复
http://www.cplusplus.com/reference/istream/istream/istream/
C++98中它只有explicit istream (streambuf* sb);
C++11中有:
explicit istream (streambuf* sb);
istream& (const istream&) = delete;
protected: istream& (istream&& x);
在你的代码里你觉得要调用哪个。。。。。
【 在 NM999 (已跪在pipelineADC的路上) 的大作中提到: 】
: using std::istream;
: int main(){
: istream is;
: ...................
【 在 buptxrc 的大作中提到: 】
: http://www.cplusplus.com/reference/istream/istream/istream/
: C++98中它只有explicit istream (streambuf* sb);
: C++11中有:
: ...................
大神你的域名真是屌。