C语言程序设计教程(第三版)课后习题8.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ int len,i,j; char a[30]={0}; …… 题解列表 2017年07月19日 0 点赞 0 评论 817 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[1024],b[1024]; int i,j; scanf("%s",&a); …… 题解列表 2017年07月24日 0 点赞 0 评论 642 浏览 评分:0.0
利用strlen函数即可求解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void fun1(char charater[100]){ int i; i=str…… 题解列表 2022年10月21日 0 点赞 0 评论 198 浏览 评分:0.0
简单方式实现 逆序输出 摘要:解题思路:逆序输出注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>int main(){ char a[100…… 题解列表 2021年04月08日 0 点赞 0 评论 179 浏览 评分:0.0
[编程入门]自定义函数之字符串反转 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { void str(char s[]); ch…… 题解列表 2019年05月03日 0 点赞 0 评论 254 浏览 评分:0.0
字符串反转C语言题解 摘要:解题思路:使用字符串函数strlen获得字符串长度注意事项:记得加上预处理命令#include<string.h>参考代码:#include<stdio.h>#include <string.h>in…… 题解列表 2024年12月25日 0 点赞 0 评论 454 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){void fnsz(char a[]);char a[100];gets(a)…… 题解列表 2018年01月01日 0 点赞 0 评论 545 浏览 评分:0.0
[编程入门]字符串函数的运用(C语言代码) 摘要:解题思路:用到的函数strcpy() strlen; 用到一个临时数组复制了源字符串注意事项:参考代码:#include<stdio.h>#define N 100void reverse(char …… 题解列表 2020年10月15日 0 点赞 0 评论 215 浏览 评分:0.0
[编程入门]自定义函数之字符串反转 摘要:解题思路:1.依次获取字符串的值,并将非空格的字符用数组接收;2.将数组接收到的字符倒序输出;注意事项:定义数组的类型;循环结构,及退出条件写正确;参考代码:#include<stdio.h>char…… 题解列表 2022年01月17日 0 点赞 0 评论 140 浏览 评分:0.0
自定义函数之字符串反转 摘要:解题思路:如题所述注意事项:参考代码:#include <stdio.h>int main(){ char a[50]; int i=0; int count=0; scanf("%s", a); f…… 题解列表 2023年06月12日 0 点赞 0 评论 78 浏览 评分:0.0