0
点赞
收藏
分享

微信扫一扫

带有空格字符串的字符逆序

祈澈菇凉 2022-05-25 阅读 10
1 #include <bits/stdc++.h>
2 using namespace std;
3 int main()
4 {
5 string a;
6 while(getline(cin,a)){
7 reverse(a.begin(),a.end());
8 cout<<a<<endl;
9 }
10 return 0;
11 }





举报

相关推荐

0 条评论