C语言程序设计教程(第三版)课后习题1.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int p[3],a,c,e; printf("请输入3个整数:"); for(a=0;a<3…… 题解列表 2018年01月03日 0 点赞 0 评论 739 浏览 评分:0.0
蓝桥杯算法训练VIP-整数平均值 (C++代码) 摘要:#include<iostream> using namespace std; int main(){ int n,s=0; cin>>n; int a[n]; …… 题解列表 2018年01月03日 0 点赞 0 评论 1666 浏览 评分:0.0
蓝桥杯算法训练VIP-整除问题 (C++代码) 摘要:#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; for(in…… 题解列表 2018年01月03日 0 点赞 0 评论 1307 浏览 评分:0.0
C语言考试练习题_保留字母 (C语言代码) 摘要:#include <stdio.h> int main(void) { int i; char str[512]; gets(str); for (i=0; str[i…… 题解列表 2018年01月03日 0 点赞 0 评论 1202 浏览 评分:0.0
最大公约数以及最小公倍数的函数(简单易懂的C语言) 摘要:#include<stdio.h>#include<string.h>#include<math.h>int gy(int a,int b){ int m,n,t; m=a; n=b…… 题解列表 2018年01月03日 0 点赞 0 评论 1549 浏览 评分:0.0
拆分位数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,s; printf("请输入一个三位数:"); scanf("%d",&s); a=s/10…… 题解列表 2018年01月04日 0 点赞 0 评论 974 浏览 评分:0.0
SHIYI:Hello, world! (C语言代码) 摘要:解题思路:此题主要要求使用EOF作为结束,因此要用到while(scanf("%d",&a[i])!=EOF),EOF即end of file,EOF的值常常为-1,单根据系统不同,可能不同,要想结束…… 题解列表 2018年01月04日 3 点赞 2 评论 779 浏览 评分:0.0
SHIYI:简单的a+b (C语言代码) 摘要:解题思路:参考答案主要就是这一句while(~scanf("%d%d", &a, &b)),在while循环中使用scanf()意思是取返回值(即正确录入的数据个数),至于“~”意思意思是按位取反,当…… 题解列表 2018年01月04日 1 点赞 0 评论 1393 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.1 (C语言代码) 摘要:解题思路:标记的方法挑出来2- n里边的素数,下次尝试用数组存储,最后一起打印注意事项:本人新手尝试记录自己的成长;望各位看官,大咖不要见笑。参考代码:#include<stdio.h>main…… 题解列表 2018年01月04日 0 点赞 0 评论 977 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.5 (C++语言代码) 摘要:解题思路:额,这道题目用循环链表写应该很简单(#include<list>),但既然是C语言基础,就用最朴素的方法来写。用new动态分配N+1个bool空间,用下标表示人的序号,true代表没有报数到…… 题解列表 2018年01月04日 0 点赞 0 评论 1327 浏览 评分:0.0