#18021: c++解答


sherry890910@gmail.com (熊熊)

學校 : 臺北市立中山女子高級中學
編號 : 97240
來源 : [223.136.138.144]
最後登入時間 :
2019-12-23 16:02:55

#include <iostream>
#include <sstream>
using namespace std;

int main()
{
string A,B;
getline(cin, A);
getline(cin, B);
stringstream ss;
ss << A;
while (ss >> A)
cout<<B<<", "<<A<<endl;
return 0;
}