优质题解 多种方法实现字符串逆序-想用指针的看过来 摘要:#### 题目描述 给定一个字符串s,将s中的字符顺序颠倒过来,比如s="abcd",逆序后变成s="dcba"。| ------------ ##### 方法一:普通逆序 …… 题解列表 2019年06月28日 1 点赞 4 评论 2235 浏览 评分:9.9
字符串问题-题解(C语言代码) 摘要:本题比较简单,大致思路如下: 读入字符串,遍历倒序输出。 我觉得注意的就是方法的选择,以及相应知识点的运用。 第一种方法是最简单的直接倒序输出: ```c #include #includ…… 题解列表 2019年06月22日 1 点赞 0 评论 691 浏览 评分:8.0
字符串问题-题解(C++和python代码) 摘要:c++用了string类和algorithm #include #include #include using namespace std; int main() { str…… 题解列表 2019年06月16日 0 点赞 0 评论 764 浏览 评分:9.9
字符串问题 (C语言代码) 摘要:解题思路:输入 获取长度 倒序输出注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char a[1000]; gets(a…… 题解列表 2019年04月23日 0 点赞 0 评论 541 浏览 评分:0.0
字符串问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>int main(){ using namespace std; char a[255]; int …… 题解列表 2019年04月18日 0 点赞 0 评论 858 浏览 评分:0.0
字符串问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i,k; char a[255]; gets(a); k=strle…… 题解列表 2019年04月14日 0 点赞 0 评论 398 浏览 评分:0.0
字符串问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int len,i; char a[100]; scanf("%s",a);…… 题解列表 2019年04月11日 0 点赞 0 评论 570 浏览 评分:0.0
字符串问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]={0};char b[100]={0};int…… 题解列表 2019年01月20日 0 点赞 0 评论 465 浏览 评分:0.0