【发布时间】:2011-05-08 14:00:57
【问题描述】:
我正在写代码
#include<sstream>
#include<iostream>
using namespace std;
int main(){
strstream temp;
int t =10;
temp>>10;
string tt ="testing"+temp.str();
有一个问题,它对临时变量根本不起作用,只是得到结果只有字符串测试,最后没有10?
}
【问题讨论】:
-
这能编译吗? strstream 在
而不是 中定义.
标签: visual-c++ strstream