明明的随机数 (C语言代码) 摘要:#include <stdio.h> int main(){ int m,i,j,t,count=0;scanf("%d",&m); int a[m],b[m]; for(i=0;i<m…… 题解列表 2018年05月29日 0 点赞 0 评论 1077 浏览 评分:0.0
【亲和数】 (C语言代码) 摘要:解题思路: m控制行数,循环里面输入两个数,通过求出一个数的真约数来与另一个数进行比较注意事项: 1.真约数不可能大于原数的一般,故只需i>=a/2; 2.可…… 题解列表 2018年05月29日 1 点赞 0 评论 704 浏览 评分:0.0
字符串中间和后边*号删除 (C语言代码) 摘要:解题思路:提交是错的注意事项:自己电脑上是对的,帮忙看看参考代码:#include <string.h>#include<stdio.h>void fun(char *a){ int i,j,n,x=…… 题解列表 2018年05月29日 0 点赞 0 评论 911 浏览 评分:0.0
母牛的故事 (C语言代码) 摘要:解题思路:将牛分为四类:当年会产出,次年会产出,两年后会产出以及三年后会产出,即设一个数组a[4],第一年四个元素值为1 0 0 0;第二年则有1 0 0 1;第三年则为1 0 1 1;第三年则为1 …… 题解列表 2018年05月29日 0 点赞 0 评论 705 浏览 评分:0.0
小白思路,简单,易理解 摘要:解题思路:小白思路注意事项:参考代码:# include<stdio.h>int main(){ int i,n; double sum=0,sum2=0; double a1 = …… 题解列表 2018年05月29日 0 点赞 0 评论 712 浏览 评分:0.0
printf基础练习2 (C语言代码) 摘要:解题思路:使用转换语句注意事项:八进制和十六进制有前缀,如果使用%o,%d,%x,是不会带有前缀的。参考代码:#inlcude <stdio.h>int main(){ int a,b; …… 题解列表 2018年05月29日 0 点赞 0 评论 591 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.4 (C语言代码) 摘要:解题思路:注意事项:构造一个新数组来做“中转站”参考代码:#include<stdio.h> void backLetter(int a[],int n,int m) { int b[n]; …… 题解列表 2018年05月30日 1 点赞 0 评论 598 浏览 评分:0.0
DNA (C语言代码)小学生解法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#include <stdlib.h>#include <math.h>void DNA(int…… 题解列表 2018年05月30日 0 点赞 0 评论 848 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.2 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ char ch; int a=0,b=0,c=0,d=0; while( scanf("%c",…… 题解列表 2018年05月30日 0 点赞 0 评论 951 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include"iostream" using namespace std; int main(){ int a,b; cin>>a>>b; for(i…… 题解列表 2018年05月30日 0 点赞 0 评论 810 浏览 评分:0.0