#include <iostream>
using namespace std;
int main()
{
string n;
int a,b;
getline(cin,n,',');
cin>>a;
if(cin.get()==',' )
cin>>b;
cout<<n<<","<<a<<","<<b<<endl;
return 0;
}
c++输入字符串和数字以逗号隔开
最新推荐文章于 2024-09-16 20:12:15 发布