C语言程序设计教程(第三版)课后习题8.5 (C语言代码)用puts_s竟然错误??? 摘要:解题思路:字符串首地址用指针传递给函数fun,然后利用指针游走将h指向字符串最后一位,再进行代换操作。注意事项:里面puts_s提交会报错,最后我用的是puts(p);通过。参考代码:#include…… 题解列表 2018年07月09日 0 点赞 4 评论 381 浏览 评分:0.0
简单解法,小白做的 自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[201];//注意范围 int i; …… 题解列表 2023年06月14日 0 点赞 0 评论 135 浏览 评分:0.0
[编程入门]自定义函数之字符串反转-题解(C语言代码)(函数法) 摘要:提目: 写一函数,使输入的一个字符串按反序存放,在主函数中输入输出反序后的字符串(不包含空格) 1、运用函数数组 2、排除空格 #include #include …… 题解列表 2020年02月26日 0 点赞 0 评论 347 浏览 评分:0.0
[编程入门]自定义函数之字符串反转-题解(C语言代码)没复杂函数 摘要:解题思路:注意事项:参考代码:#include<stdlib.h> #include<stdio.h>int main(){ char a[50], c, d=0; //用数…… 题解列表 2020年08月15日 0 点赞 0 评论 144 浏览 评分:0.0
[编程入门]自定义函数之字符串反转-题解(C语言代码)解决格式错误问题 摘要:#include char a[100],b[100]; int i,j=0; void fun(char a[100],char b[100]) { for(i=strlen(a)-1;…… 题解列表 2019年11月29日 0 点赞 0 评论 416 浏览 评分:0.0
[编程入门]自定义函数之字符串反转-题解(C语言代码) 摘要://字符串反转 #include #include void turn(char *str); int main() { char str[100]; scanf("%s",…… 题解列表 2019年10月19日 0 点赞 0 评论 308 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:写一个函数,输入数组后,数组内元素循序逆转主函数输入数组-->经过函数转换-->主函数输出数组参考代码:#include<stdio.h> #include<string.h> void…… 题解列表 2022年06月30日 0 点赞 0 评论 135 浏览 评分: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
1031 字符串反转(注意字符串的长度) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<stdlib.h>int main(){ char a[1000]; …… 题解列表 2024年05月14日 0 点赞 0 评论 99 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:/*写一函数,使输入的一个字符串按反序存放,在主函数中输入输出反序后的字符串*/#include <stdio.h>#include <string.h> int mai…… 题解列表 2018年02月18日 0 点赞 0 评论 592 浏览 评分:0.0