c语言利用指针解决(代码简洁) 摘要:```c #include int main() { char str[100]; char* p=str, * q=str;//定义两个指针变量,并指向数组首地址 gets(str…… 题解列表 2022年02月26日 0 点赞 0 评论 209 浏览 评分:9.9
1093: 字符逆序 摘要:解题思路:注意事项:参考代码:public class test1093 { public static void main(String[] args) {// 将一个字符串st…… 题解列表 2022年02月28日 0 点赞 0 评论 231 浏览 评分:9.9
字符逆序(c语言极简) 摘要:解题思路:一口气读入后跳过末尾'\0'后直接输出,清晰明了,简单粗暴注意事项:注意跳过'\0'即可参考代码:#include<stdio.h>#include<stri…… 题解列表 2022年03月08日 0 点赞 0 评论 232 浏览 评分:9.9
SinzoL--题解 1093: 字符逆序 摘要:####我是新手,这里只是把让字符逆序的两种方式给罗列了一下 ###第一种:用string变量 ```cpp #include #include #include using namesp…… 题解列表 2022年06月28日 0 点赞 0 评论 421 浏览 评分:9.9
1093简单的解法 摘要:解题思路:如下注意事项:如果复制,请复制过后检查,我提交时是正确的。我使用的是自定义函数,注意理解。sasa是我随便写的名字,无碍。参考代码:#include<stdio.h>#include<str…… 题解列表 2022年08月20日 0 点赞 1 评论 104 浏览 评分:9.9
1093: 字符逆序 摘要:要注意,a数组是一个字符串数组,输入后最后一项是‘\0’,因此第8行的strlen(a)还要-1 ```cpp #include #include using namespace std; …… 题解列表 2022年08月31日 0 点赞 0 评论 206 浏览 评分:9.9
指针遍历交换 摘要:解题思路:不算复杂注意事项:注意指针的移动和交换参考代码:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<string.h>#incl…… 题解列表 2022年10月01日 0 点赞 0 评论 173 浏览 评分:9.9
简单代码数组交换 摘要:解题思路:数组交换注意事项:参考代码:#include<stdio.h>int main(){ char A[100]; char B[100]; int i; gets(A)…… 题解列表 2022年10月17日 0 点赞 1 评论 84 浏览 评分:9.9
字符逆序(怀氏C++) 摘要:#include<iostream> using namespace std; #include<algorithm> int main() { string s; get…… 题解列表 2022年10月25日 0 点赞 0 评论 466 浏览 评分:9.9