采药 (C++代码) 摘要:解题思路: 逐渐求最大值(模板题,-多阶段决策问题)注意事项:遍历是从最大值数组中的1到你拥有的时间t参考代码:#include <cstdio>#include <algorithm>using n…… 题解列表 2017年07月10日 4 点赞 0 评论 1644 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:#include <stdio.h>int main(){ int m,n,i,j,a,b; printf("Input two numbers:"); scanf("%d %d",&m,&n); i…… 题解列表 2017年07月11日 0 点赞 0 评论 1037 浏览 评分:0.0
2003年秋浙江省计算机等级考试二级C 编程题(2) (C++代码) 摘要:参考代码:#include<iostream>using namespace std;bool is_prime(int x);int main(){ int m, n; int sum = 0; c…… 题解列表 2017年07月11日 0 点赞 0 评论 1298 浏览 评分:0.0
C二级辅导-进制转换 (C++代码) 摘要:解题思路:用C++的头文件<iomanip>里面的库函数参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ …… 题解列表 2017年07月11日 0 点赞 0 评论 1460 浏览 评分:0.0
C二级辅导-同因查找 (C++代码) 摘要:参考代码:#include<iostream> using namespace std; int main(){ for(int i=10; i<=1000; i++){ if(i%2==0&…… 题解列表 2017年07月11日 0 点赞 0 评论 1573 浏览 评分:0.0
C语言训练-尼科彻斯定理 (C语言代码) 摘要:解题思路:注意事项:参考代码:任意输入值,结果是正确的,但提交后显示答案错误,求大神指点。#include<stdio.h> int main() { int i,n,res,First,mi…… 题解列表 2017年07月11日 0 点赞 1 评论 877 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.7 (C语言代码) 摘要:解题思路:主要就是找到求完数用到的控制条件,和如何保存他的因子。注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c[150],d,e=1,i,j,k…… 题解列表 2017年07月11日 2 点赞 0 评论 1076 浏览 评分:0.0
字符串的输入输出处理 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[1000]; int n,i; scanf("%d",&n); gets(a); whi…… 题解列表 2017年07月11日 0 点赞 0 评论 1015 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x; scanf("%lf",&x); if(x<0) x=-…… 题解列表 2017年07月11日 0 点赞 0 评论 1039 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:输入数为n第一行输出为 i第二行输出为 数组a[5]第三行输出为m注意事项:在VC下编译是成功的,但在网上编译失败,大家可以参考,同时也请大神指出我编译错误的原因。参考代码:#include…… 题解列表 2017年07月12日 0 点赞 1 评论 498 浏览 评分:0.0