字符逆序 (C语言代码) 摘要:解题思路以及注意事项:先让用户输入字符串,记得要用gets()接收,方便。然后用strlen()函数计算用户输入了几个字符,strlen()函数在string.h里面。最后用for循环输出,注意数组的…… 题解列表 2017年06月17日 1 点赞 0 评论 875 浏览 评分:0.0
字符逆序 (C语言代码) 摘要:解题思路:我的解题思路通过定义一个指针来遍历要输入的输入,来确定数组中的字符的个数,然后在通过循环输出。注意事项:使用指针不能指向别处。参考代码:#include"stdio.h"#include"s…… 题解列表 2017年10月26日 0 点赞 0 评论 669 浏览 评分:0.0
字符逆序-题解(C++代码) 摘要:```cpp #include #include #include using namespace std; int main() { char chr_char[100]; …… 题解列表 2019年11月29日 0 点赞 0 评论 361 浏览 评分:0.0
1093——字符逆序 摘要:参考代码:#include"stdio.h" #include"string.h" typedef char string[111]; string str; void fun(char *s…… 题解列表 2022年10月29日 0 点赞 0 评论 93 浏览 评分:0.0
1093: 字符逆序-题解(python代码) 摘要:解题思路:切片的使用注意事项:参考代码:a = input()for i in a[::-1]: print(i,end='')…… 题解列表 2021年10月14日 0 点赞 0 评论 201 浏览 评分:0.0
字符逆序 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100],b[100]; int i,z; gest(a…… 题解列表 2019年02月17日 2 点赞 1 评论 190 浏览 评分:0.0
字符逆序 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char arr[100]; int len,i…… 题解列表 2018年10月22日 2 点赞 0 评论 409 浏览 评分:0.0
很简单· 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i = 0 ,j=0; char arr [100]; gets(a…… 题解列表 2022年11月19日 0 点赞 0 评论 97 浏览 评分:0.0
字符逆序 (C语言代码) 摘要:解题思路:正向输入,逆向输出 注意事项:要注意scanf和gets的区别,前者以空格划分字符串参考代码:#include<iostream>#include<cstring>using namespa…… 题解列表 2018年07月03日 0 点赞 0 评论 333 浏览 评分:0.0
无聊的星期六 摘要:-------------------------------------------------------------------------print(input()[::-1])-------…… 题解列表 2024年04月27日 0 点赞 0 评论 102 浏览 评分:0.0