矩阵加法 (C语言代码) 摘要:解题思路:注意事项:输出数与数之间只有一个空格。参考代码:#include<stdio.h>void main(){ int a,b,c,d,e; int ask1[100][100]={0}; in…… 题解列表 2017年10月17日 0 点赞 0 评论 2138 浏览 评分:7.3
愚蠢的摄影师 (C++代码) 摘要:解题思路:这种题其实和1004这种差不多,都是每几个状态之后状态变化发生重复,现在的结果必然会对以后造成影响,所以现在的个数必然会对将来状态的个数造成影响,比如1004的母牛问题,每4年都是一个新的开…… 题解列表 2017年10月17日 1 点赞 3 评论 1281 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题1.6 (C语言代码) 摘要:解题思路:#include<stdio.h>int main(){ int a,b,c; printf("Input three numbers:"); scanf("%d %d %…… 题解列表 2017年10月17日 0 点赞 0 评论 836 浏览 评分:5.5
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:把数字转化为字符串的形式,更便于进行数字位数的判断,所以我引用了str函数注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ c…… 题解列表 2017年10月17日 0 点赞 0 评论 839 浏览 评分:2.0
C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:解题思路:本人新手,所以写的比较中规中矩。注意事项:使用循环嵌套参考代码:#include<stdio.h>int main(){ int a,b,c; printf("请输入a的值\n"); pri…… 题解列表 2017年10月17日 1 点赞 0 评论 1492 浏览 评分:0.0
核桃的数量 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int a,b,c,i,max,min; scanf("%d %d %d",&a,&b,&c); …… 题解列表 2017年10月17日 0 点赞 0 评论 1384 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题9.3 (C语言代码) 摘要:#include<stdio.h> #include <math.h> #define S(a,b,c) ((a+b+c)/2) #define area(S,a,b,c) (sqrt(…… 题解列表 2017年10月17日 0 点赞 0 评论 1402 浏览 评分:0.0
sizeof的大作用 (C语言代码) 摘要:解题思路:定义一个int 变量,用该变量求出int所占内存大小。注意事项:sizeof返回的都是int 型参考代码:#include<stdio.h>int main(){ int a; …… 题解列表 2017年10月17日 0 点赞 0 评论 1990 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题1.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){printf("******************** n\");printf("Hello World! n\…… 题解列表 2017年10月17日 0 点赞 0 评论 948 浏览 评分:0.0