字符串的输入输出处理 (C语言代码) 摘要:解题思路:这里用的二维数组来接收字符串。注意事项:用过scanf()后要用getchar()来接收回车符,要不然就是格式错误,捣鼓了好久……参考代码:#include <stdio.h> int m…… 题解列表 2018年10月31日 4 点赞 0 评论 809 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.9 (C语言代码) 摘要:解题思路:解题思路:C标准中有一个头文件<ctype.h>,这里面定义了一批C语言字符处理函数,用于测试字符是否属于特定的字符类别,如字母字符、控制字符、数字、等等;头文件:<ctype.h>函数: …… 题解列表 2018年10月31日 0 点赞 0 评论 1037 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.8 (C语言代码)真的很简洁 三行!!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(void) { char s[5]; scanf("%s", s); print…… 题解列表 2018年10月31日 0 点赞 1 评论 782 浏览 评分:9.3
C语言程序设计教程(第三版)课后习题8.7 (C语言代码)不要为了写程序而写程序 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main(void) { char s[100]; scanf("%s…… 题解列表 2018年10月31日 0 点赞 0 评论 882 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.6 (C语言代码)库函数 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main(void) { char s[100], s2[100]; …… 题解列表 2018年10月31日 0 点赞 0 评论 595 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.5 (C语言代码)倒着来 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main(void) { char s[100]; scanf("%s…… 题解列表 2018年10月31日 0 点赞 0 评论 602 浏览 评分:9.0
C语言程序设计教程(第三版)课后习题8.4 (C语言代码)巧妙处理下标 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(void) { int a[3][3]; for(int i = 0; i < 3; ++i) {…… 题解列表 2018年10月31日 0 点赞 0 评论 730 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.5 (C语言代码) 摘要:解题思路:注意事项:*号不能少.参考代码:#include<stdio.h>main(){ printf("**************************\nHello World!\n*…… 题解列表 2018年10月31日 0 点赞 0 评论 601 浏览 评分:0.0
课后习题8.3 (C语言代码)最佳题解 有东西! 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <math.h> int isprime(int n) { if(n <= 1) { retu…… 题解列表 2018年10月31日 0 点赞 0 评论 803 浏览 评分:0.0
课后习题8.1 (C语言代码)一行代码是什么感觉 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int gcd(int a, int b) { return a%b==0 ? b : gcd(b,a%b); } i…… 题解列表 2018年10月31日 2 点赞 6 评论 1146 浏览 评分:9.7