C语言程序设计教程(第三版)课后习题8.5 (C语言代码) 摘要:#include <stdio.h> #include <string.h> int main() { char str[100],temp; int i,j; gets(str);…… 题解列表 2017年12月02日 1 点赞 0 评论 794 浏览 评分:0.0
多余的string函数 摘要:解题思路:#include<stdio.h> #include<string.h> int main(void) { char a[100]; gets(a); i…… 题解列表 2024年12月28日 0 点赞 0 评论 195 浏览 评分:0.0
1031: [编程入门]自定义函数之字符串反转c语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char str[100]; gets(str);//输入一串字符 i…… 题解列表 2023年11月01日 0 点赞 0 评论 108 浏览 评分:0.0
charAt之字符串反转 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2023年03月07日 0 点赞 0 评论 67 浏览 评分:0.0
[编程入门]自定义函数之字符串反转-题解(C语言代码) 摘要: #include #include int main() { char input[80]; scanf("%s",input); …… 题解列表 2019年11月02日 0 点赞 0 评论 312 浏览 评分:0.0
[编程入门]自定义函数之字符串反转-题解(C语言代码) 摘要:解题思路:注意事项:len记得减1参考代码:#include<stdio.h>#include<string.h>int main(){ int i,len; char a[100]; gets(a)…… 题解列表 2021年01月20日 0 点赞 0 评论 224 浏览 评分:0.0
为啥会时间超限。。。。。。有大佬抬一手吗 摘要:解题思路:代码有问题。。。。注意事项:参考代码:#include<stdio.h>void zi(char n[],int i){ int j=0; char c; for(;j<=…… 题解列表 2018年03月06日 0 点赞 3 评论 398 浏览 评分: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
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:利用字符串提供的reverse()方法实现逆置注意事项:注意输出的时候一定要加toString()参考代码:import java.nio.Buffer;import java.util.S…… 题解列表 2021年09月26日 0 点赞 0 评论 122 浏览 评分:0.0
自定义函数,使字符串反序存放,在主函数中输入并输出反序后的字符串(不包含空格)。 摘要:解题思路:字符串进行输入再进行反序输出,首先想到的是用字符数组来存放和反序输出。定义一个一维字符数组用于存放字符型数据。用gets()函数读取字符串,然后再自定义函数中进行反序存放和输出。自定义函数 …… 题解列表 2022年08月04日 0 点赞 0 评论 213 浏览 评分:0.0