C语言程序设计教程(第三版)课后习题10.4 (C语言代码) 摘要:解题思路:这是用户海洋之心的代码,我只是加了点注释,可能注释不是很规范易懂注意事项:参考代码:#include<stdio.h>void move(int a[],int n,int m);int m…… 题解列表 2017年09月07日 0 点赞 0 评论 945 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路: 程序正确,但总是提醒答案错误,是因为结果超出了变量可表示的范围 注意事项: 使用unsigned long int 类型。 参考代码:#include<stdio…… 题解列表 2017年09月08日 0 点赞 0 评论 955 浏览 评分:0.0
回文数(一) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int f(int n);int fx(int n);int main(){ int M,L,count; scanf("%…… 题解列表 2017年09月08日 0 点赞 0 评论 1348 浏览 评分:0.0
上车人数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int add(int a,int n,int Y){ if(n==1) return a; else if(n==2) r…… 题解列表 2017年09月08日 0 点赞 0 评论 1417 浏览 评分:0.0
大小写转换 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100]; int i; while(g…… 题解列表 2017年09月08日 0 点赞 0 评论 1118 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路:先计算该月第一天是该年第几天,然后再根据该日为该月第几天,通过相加把最后结果计算出来。注意事项:注意闰年的计算参考代码:#include"stdio.h"typedef struct …… 题解列表 2017年09月08日 1 点赞 0 评论 913 浏览 评分:0.0
ASCII帮了大忙 摘要:解题思路:1.将输入以字符串方式读取2.通过ASCII判断除了"."的每一个字符是否在0-9之间。注意事项:进行数字运算时要将字符型强制转换为整型。参考代码:#include <stdio.h>#in…… 题解列表 2017年09月09日 0 点赞 0 评论 1084 浏览 评分:0.0
printf基础练习2 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(void) { int a; printf ("please en…… 题解列表 2017年09月10日 0 点赞 2 评论 430 浏览 评分:0.0
C语言训练-排序问题<1> (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c,d; int t; scanf("%d %d %d %d",&a,&b,…… 题解列表 2017年09月11日 0 点赞 0 评论 805 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题4.9 (C语言代码) 摘要:解题思路:好多题目都是很坑爹的,结果输出的是正确的,但是最终确给出输出答案错误.注意事项:注意的是不要用printf给提示,不然会提示你输出答案不正确.参考代码:#include <stdio.h> …… 题解列表 2017年09月12日 0 点赞 0 评论 1110 浏览 评分:0.0