【魔板】 (C++代码) 摘要:解题思路:参考代码:#include<bits/stdc++.h> using namespace std; int AimValue; bool Vis[49451 + 1]; type…… 题解列表 2018年07月25日 0 点赞 0 评论 1201 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:辗转相除法求最大公约数,再用两个数的积除以最大公约数得到最小公倍数注意事项:参考代码:#include<stdio.h>int yue(int x,int y){ int t,temp…… 题解列表 2018年07月25日 0 点赞 0 评论 946 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.11 (C++语言 使用链表)带注释 摘要:解题思路:注意事项:不知道为什么用C提交出现编译错误,c++没事。参考代码:#include<stdio.h>#include <stdlib.h>typedef int ElemType;#defi…… 题解列表 2018年07月25日 1 点赞 0 评论 1159 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.7 (C语言代码) 摘要:解题思路:定义两个字符数组,将字符串输入其中一个数组,运用循环将给定的字符赋值给另一个字符数组,实现该功能。注意事项:参考代码:#include<stdio.h>int main(){ int n…… 题解列表 2018年07月25日 0 点赞 0 评论 869 浏览 评分: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 评论 715 浏览 评分:0.0
蓝桥杯算法提高VIP-阮小二买彩票 (C++代码) 摘要:解题运用STL中的next_permutation函数计算排列组合关系#include "iostream" #include "algorithm" using namespace std; …… 题解列表 2018年07月25日 0 点赞 0 评论 1533 浏览 评分: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 评论 1215 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int a,b,c; scanf("%d%d",&a,&b); for(c=…… 题解列表 2018年07月25日 0 点赞 0 评论 726 浏览 评分:0.0
汪汪与洋洋 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,k; int a,b; a=b=0; for(i=1;i<=6;i++) { for(j=1;…… 题解列表 2018年07月25日 0 点赞 0 评论 1618 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.9 (C语言代码) 摘要:解题思路:通过指针来传递字符串注意事项:参考代码:#include<stdio.h>int *fun(char *p ){ int str[4] = { 0 }; while (…… 题解列表 2018年07月25日 0 点赞 0 评论 750 浏览 评分:0.0