解题思路:
c++ 有现成的函数
注意事项:
参考代码:
#include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string s; getline(cin, s); reverse(s.begin(), s.end()); cout << s; return 0; }
0.0分
0 人评分
多输入输出练习1 (C语言代码)浏览:1195 |
最长单词 (C语言代码)浏览:1410 |
C语言程序设计教程(第三版)课后习题6.4 (C语言代码)浏览:1059 |
C语言程序设计教程(第三版)课后习题6.9 (C语言代码)浏览:790 |
WU-输出九九乘法表 (C++代码)浏览:1729 |
1013题解浏览:574 |
循环入门练习6 (C语言代码)浏览:992 |
2006年春浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:686 |
钟神赛车 (C语言代码)浏览:617 |
勾股数 (C语言代码)浏览:806 |