string str = "324324"; ostringstream ostr(str); cout << ostr.str() << endl;
ostr << "zhangyice"<<endl; ostr << 123123123 << endl; cout << ostr.str() << endl;
先初始化ostr后可以打印出来324324,但是为什么后来再往缓冲区写值后没有了最开始的324324呢?
收起
当前问题酬金
¥ 0 (可追加 ¥500)
支付方式
扫码支付
支付金额 15 元
提供问题酬金的用户不参与问题酬金结算和分配
支付即为同意 《付费问题酬金结算规则》
http://www.codes51.com/itwd/1335942.html
报告相同问题?