题解 1031: [编程入门]自定义函数之字符串反转

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

自定义函数之字符串反转

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ char a[1000]; cin>>a; for(int ……

偷了个懒直接调用c++的库函数reverse了

摘要:解题思路:直接偷懒了注意事项:个人建议如果用c写尽量注意char *的结束标志,char []没有结束标志参考代码:#include<bits/stdc++.h> using namespace st……

字符串反转

摘要:解题思路:注意事项:参考代码:#include <iostream>    //标准输入输出流#include <string>      //字符串类型#include <algorithm>   ……