0
点赞
收藏
分享

微信扫一扫

自考新教材-p301_5(2)

源程序:

#include <string>
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
string str = "";
getline(cin, str, '\n');
reverse(str.begin(), str.end());
cout << str << endl;
system("pause");
return 1;
}

运行结果:

自考新教材-p301_5(2)_#include

 


举报

相关推荐

0 条评论