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

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

筛选

自定义函数之字符串反转1031

摘要:解题思路:两头开始交换位置注意事项:字符串长度计算和反转的限制条件参考代码:#include<stdio.h>#include <string.h>void revstr(char a[100],in……

自定义函数之字符串反转

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>            //strlen()函数在string头文件中,一定得先调用一下  char……

自定义函数之字符串反转

摘要:解题思路:如题所述注意事项:参考代码:#include <stdio.h>int main(){ char a[50]; int i=0; int count=0; scanf("%s", a); f……

自定义函数之字符串反转

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>            //strlen()函数在string头文件中,一定得先调用一下  int ……

自定义函数之字符串反转

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

自定义函数之字符串反转

摘要:#include #include int main(){ char a[100]; int i,j; gets(a);//从输入缓存中读取多个字符,遇到回车符时,结……

函数字符串的反转

摘要:```c #include #include void f(char a[100]); int main() { char a[100]; gets(a); f(a); } ……