64,637
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
#include<sstream>
#include <string>
using namespace std;
int main()
{
int b;
string s = "45";
istringstream is(s);
is >> b;
string de{ "123A9.2" };
is.str(de);
int i;
char c;
double d;
is >> i >> c >> d;
cout << i << " " << c << " " << d << endl;
system("pause");
return 0;
}