自定义函数之字符串反转,C++解题 摘要:解题思路:调用C++自带的reverse函数注意事项:头文件algorithm参考代码:#include <iostream>#include<algorithm>using namespace st…… 题解列表 2022年06月07日 0 点赞 0 评论 115 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[30]; scanf("%s",a); fo…… 题解列表 2024年09月21日 0 点赞 0 评论 156 浏览 评分:0.0
[编程入门]自定义函数之字符串反转-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; int i,n; gets(a)…… 题解列表 2020年10月09日 0 点赞 0 评论 244 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> void Reverse(char str[],int n) { for(int i=…… 题解列表 2018年04月15日 0 点赞 0 评论 576 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[100]; int i,j=0; scanf("%s",a); for(i…… 题解列表 2024年11月19日 0 点赞 0 评论 381 浏览 评分:0.0
自定义函数之字符串反转 摘要:解题思路:从字符串最后一位数开始输出即可注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i; char a[100…… 题解列表 2023年10月01日 0 点赞 0 评论 107 浏览 评分:0.0
C语言字符串反转(全网最短了) 摘要:解题思路:简单粗暴直接反转注意事项:从len-1开始反循环遍历参考代码:#include<stdio.h>#include<string.h>int main(){ char a[1000]; …… 题解列表 2021年11月28日 0 点赞 0 评论 342 浏览 评分:0.0
[编程入门]自定义函数之字符串反转-题解(C语言代码) 摘要: #include "stdio.h" #include "string.h" int exchange(char z[50]) { int i,n,t; n=strlen(z…… 题解列表 2020年01月31日 0 点赞 0 评论 333 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>main(){ char a[100],i,s; gets(a); s=strlen(a); for…… 题解列表 2018年12月17日 0 点赞 0 评论 349 浏览 评分:0.0
C语言 自定义函数之字符串反转& 摘要:解题思路:注意事项:本写法没有参考价值,仅供纪念,用上strlen(计算字符串的实际长度不包括末尾的'\0')参考代码:#include<stdio.h>#define Long 20…… 题解列表 2022年11月16日 0 点赞 0 评论 104 浏览 评分:0.0