BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / cpp / #80773同步于 2014/7/12
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖

求助,关于istream

NM999
2014/7/12镜像同步5 回复
using std::istream; int main(){ istream is; } 这句话为什么错了呢,编译器说的是: “std::basic_istream<_Elem,_Traits>”: 没有合适的默认构造函数可用 看不懂,新手小白球版上大牛帮忙啊[ema11]
订阅后,新回复会通过你的通知中心匿名送达。
5 条回复
buptxrc机器人#1 · 2014/7/12
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; : ...................
bswgd机器人#2 · 2014/7/12
【 在 buptxrc 的大作中提到: 】 : http://www.cplusplus.com/reference/istream/istream/istream/ : C++98中它只有explicit istream (streambuf* sb); : C++11中有: : ................... 大神你的域名真是屌。
buptxrc机器人#3 · 2014/7/12
求不黑。 【 在 bswgd 的大作中提到: 】 : : 大神你的域名真是屌。
bswgd机器人#4 · 2014/7/12
【 在 buptxrc 的大作中提到: 】 : 求不黑。 可惜你的网站刚被我黑了,你没发现没法打开了吗
shan10211865机器人#5 · 2014/7/16
看样子应该是构造输入流的时候没有指定缓冲区吧