C语言程序设计教程(第三版)课后习题10.1 (C语言代码) 摘要:解题思路:用冒泡排序解决冒泡排序解决参考代码:#include<stdio.h>int main(){ int a[3]; int temp; int i,j; for(i=…… 题解列表 2018年07月25日 0 点赞 0 评论 724 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.5 (C语言代码) 摘要:解题思路:注意事项:double型 用printf("%.2lf\n",Sn)参考代码:#include<stdio.h>int main(){ int a,b,c,i; double s=0,d=0…… 题解列表 2018年07月25日 0 点赞 0 评论 1110 浏览 评分:0.0
可AC (C语言代码) 摘要:解题思路: 注意事项:参考代码:#include<stdio.h> int fun(int n) { int sum = 0; if (n == 1) sum = 0; i…… 题解列表 2018年07月25日 2 点赞 0 评论 1784 浏览 评分:0.0
【魔板】 (C++代码) 摘要:解题思路:参考代码:#include<bits/stdc++.h> using namespace std; int AimValue; bool Vis[49451 + 1]; type…… 题解列表 2018年07月25日 0 点赞 0 评论 1255 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:辗转相除法求最大公约数,再用两个数的积除以最大公约数得到最小公倍数注意事项:参考代码:#include<stdio.h>int yue(int x,int y){ int t,temp…… 题解列表 2018年07月25日 0 点赞 0 评论 995 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.11 (C++语言 使用链表)带注释 摘要:解题思路:注意事项:不知道为什么用C提交出现编译错误,c++没事。参考代码:#include<stdio.h>#include <stdlib.h>typedef int ElemType;#defi…… 题解列表 2018年07月25日 1 点赞 0 评论 1204 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.7 (C语言代码) 摘要:解题思路:定义两个字符数组,将字符串输入其中一个数组,运用循环将给定的字符赋值给另一个字符数组,实现该功能。注意事项:参考代码:#include<stdio.h>int main(){ int n…… 题解列表 2018年07月25日 0 点赞 0 评论 902 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路:采用数组将每月的天数存入数组中,再判断输入年份是否为闰年。注意事项:参考代码:#include<stdio.h>int main(){ int y,m,d; int i,n=0; int a…… 题解列表 2018年07月25日 0 点赞 0 评论 750 浏览 评分:0.0
蓝桥杯算法提高VIP-阮小二买彩票 (C++代码) 摘要:解题运用STL中的next_permutation函数计算排列组合关系#include "iostream" #include "algorithm" using namespace std; …… 题解列表 2018年07月25日 0 点赞 0 评论 1609 浏览 评分:0.0
汪汪与打针 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,i=0; while(scanf("%d %d",&a,&b)!=EOF){ while(1)…… 题解列表 2018年07月25日 0 点赞 0 评论 1287 浏览 评分:0.0