求助0分!!!
查看原帖
求助0分!!!
576173
FanSizhe127楼主2022/12/2 19:13
#include<bits/stdc++.h>
using namespace std;

int main()
{
	int x=0;
	string s;
	while(getline(cin,s))
	{
		x++;
		cout<<' '<<x<<' ';
		for(int i=0;i<s.size();i++)
		{
			cout<<s[i];
		}
		cout<<'\n';
	}
}
2022/12/2 19:13
加载中...