C语言程序设计教程(第三版)课后习题7.5 (C语言代码)(简单) 摘要:解题思路:注意事项:参考代码:/*输入10个数字,然后逆序输出。*/#include<stdio.h>int main(){ int i,a[10]; for(i=0;i<10;i++…… 题解列表 2018年02月17日 0 点赞 0 评论 783 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:/*写两个函数,分别求两个整数的最大公约数和最小公倍数,用主函数调用这两个函数,并输出结果两个整数由键盘输入。*/#include <stdio.h>void bs(in…… 题解列表 2018年02月17日 0 点赞 0 评论 897 浏览 评分:0.0
幸运儿 (C++代码) 摘要:#include <iostream> using namespace std; const int N = 51; int main() { int n; while (cin >>…… 题解列表 2018年02月17日 0 点赞 0 评论 1222 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int i,j,k=0,a[10][10],b=0,c=0; f…… 题解列表 2018年02月17日 0 点赞 0 评论 767 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.4 (C语言代码)(简单版) 摘要:解题思路:注意事项:参考代码:/*写一个函数,使给定的一个二维数组(3×3)转置,即行列互换。*/#include <stdio.h>int main(){ int a[3][3]; …… 题解列表 2018年02月17日 0 点赞 0 评论 973 浏览 评分:0.0
幸运儿 (C语言代码)利用循环链表处理! 摘要:解题思路:利用循环链表,移动一位,移除一位,直到剩下两人。注意事项:注意题目意思,每次循环完一轮都从1重新开始,与出圈问题有少许不同。参考代码:#include<stdio.h>#include<st…… 题解列表 2018年02月17日 2 点赞 0 评论 1126 浏览 评分:0.0
DNA (C++代码) 摘要:参考代码:#include <iostream> using namespace std; int main() { int n,a,b,flag; cin>>n; …… 题解列表 2018年02月17日 0 点赞 0 评论 879 浏览 评分:0.0
P1001 (C语言代码) 摘要:解题思路:注意事项:注意m<2的判断参考代码:#include<stdio.h>int main(){ int N,k,i,j,m,f=0; int a[10000]; scanf("%d%d",&N…… 题解列表 2018年02月17日 1 点赞 0 评论 951 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.7 (C语言代码)要用getchar()吸收多余字符哦! 摘要:解题思路:注意事项:getchar(); //吸收scanf后的空格键参考代码:#include<stdio.h>#include<string.h>void strco(char *b,int n,…… 题解列表 2018年02月17日 0 点赞 1 评论 536 浏览 评分:0.0
IP判断 (C++代码) 摘要:参考代码:#include <iostream> #include <string> using namespace std; int main() { string str; …… 题解列表 2018年02月17日 0 点赞 0 评论 795 浏览 评分:0.0