钟神赛车 (C语言代码) 摘要:#include <stdio.h>#define M 1000int main(){ int n; int a[M],b[M]; int i,j,t,k; int value,win,lose,ma…… 题解列表 2017年08月19日 1 点赞 0 评论 1336 浏览 评分:4.0
模拟计算器 (C语言代码) 摘要:参考代码:int main() { int a,b,c; char s; scanf("%d%d",&a,&b); getchar(); s=getchar(); switc…… 题解列表 2017年08月21日 0 点赞 1 评论 1418 浏览 评分:4.0
C语言程序设计教程(第三版)课后习题8.8 (C语言代码) 摘要:解题思路:注意事项:参考代码:# include <stdio.h>int main(){ int num; int a,b,c,d; scanf ("%d",&num); …… 题解列表 2017年08月27日 0 点赞 0 评论 914 浏览 评分:4.0
C语言程序设计教程(第三版)课后习题11.5 (C语言代码) 摘要:#include <stdio.h>struct stu{ char name[50], num[50]; int a, b, c;};void input(struct stu *p){ scanf…… 题解列表 2017年08月28日 2 点赞 0 评论 1790 浏览 评分:4.0
买不到的数目 (C++代码) 摘要:#include<iostream> using namespace std; int main() { int a,b; while(cin>>a>>b)cout<<a*b…… 题解列表 2017年08月31日 0 点赞 1 评论 1117 浏览 评分:4.0
C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int a,b,c,d; scanf("%d%d%d", &a,&b,&c);…… 题解列表 2017年09月12日 2 点赞 0 评论 1130 浏览 评分:4.0
C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路:先判断输入的n如果等于0,则返回sn=1;否则进入while(i<=n)循环,执行n次。考虑到阶乘可能超过int类型所表示的数据范围,应设long long jie=1,sn=0;注意事项:…… 题解列表 2017年09月21日 4 点赞 0 评论 1462 浏览 评分:4.0
C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:#include <stdio.h>main(){ int a,b,c,w; scanf("%d %d %d",&a,&b,&c); w=(a>b)?a:b;//这两句应该可以简化成一句吧 w=(w>…… 题解列表 2017年09月27日 0 点赞 0 评论 831 浏览 评分:4.0
C语言程序设计教程(第三版)课后习题8.5 (C语言代码) 摘要:解题思路:题目的要求是要我们在主函数中输入字符,调用函数进行逆序转换,有输出语句,可通过主函数调用满足“在主函数中输出”。利用函数调用,在主函数中设数组char ch[100],此时用gets(ch)…… 题解列表 2017年10月01日 3 点赞 2 评论 1116 浏览 评分:4.0
删除数组中的0元素 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,i,j,count,sum=0,k=0,x; int nums[1000]; s…… 题解列表 2017年11月13日 0 点赞 0 评论 2479 浏览 评分:4.0