#include
#include
using namespace std;
int main()
{
CMyistream_iteratorinputInt(cin);
int n1,n2,n3;
n1 = * inputInt; //读入 n1]
int tmp = * inputInt;
cout << tmp<< endl;
inputInt ++;
n2 = * inputInt; //读入 n2
inputInt ++;
n3 = * inputInt; //读入 n3
cout << n1 <<"," << n2<< "," << n3 << endl;
CMyistream_iteratorinputStr(cin);
string s1,s2;
s1 = * inputStr;
inputStr ++;
s2 = * inputStr;
cout << s1 <<"," << s2 << endl;
return 0;
}
输入:
79 90 20 hello me
输出:
79
79,90,20
hello,me
求助啊,多谢了