题解 1093: 字符逆序

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

筛选

20221123字符逆序

摘要:解题思路:注意事项:字符串长度为l,则旧/新字符串下标最大均为l-1;参考代码:#include <stdio.h>#include <string.h>int main(){     int i,j……

字符逆序(常规解法)

摘要:解题思路:gets()获取包含空格字符串,计算长度,常规逆序.注意事项:参考代码:……

1093: 字符逆序

摘要:```cpp #include using namespace std; string s1; int main() { getline(cin,s1); //int len=str……

字符逆序c语言

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i; char a[1001]; gets(a); for(i=st……

用指针几行搞定(c语言)

摘要:解题思路:按题意写即可注意事项:使用gets()输入参考代码:#include<stdio.h> #include<string.h> int main() { char str[100],……

1093: 字符逆序

摘要:解题思路:倒序输出就用[::-1],两行解决,超简单。注意事项:参考代码:n=input()print(n[::-1])……

1093: 字符逆序

摘要:只需将字符数组倒过来输出就行了 ```cpp #include #include using namespace std; int main() { char ch[101]; ……

1093: 字符逆序

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<string>#include<algorithm>//导入algorith……

1093 字符逆序 字符串

摘要:#include<stdio.h>#include<string.h> int main(){ char str[100]; gets(str); int a,i,temp; a=strlen(str……

字符串逆序输出(C语言)

摘要:两种方法: 法一:字符串数组 冒泡排序法 #include<stdio.h> #include<stdlib.h> void sort_bubble(char arr[], int len) ……