1158: 作业调度方案 摘要:```cpp #include using namespace std; struct node { int id,cost; } w[21][21]; int m,n,ord…… 题解列表 2022年10月24日 0 点赞 0 评论 615 浏览 评分:9.9
温度转换(C++) 摘要:解题思路:注意事项:输出格式参考代码:#include<iostream>using namespace std;float cyof(int c){ float f; f=32+c*9/…… 题解列表 2022年10月24日 0 点赞 0 评论 435 浏览 评分:9.9
成绩归类(c++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n1=0,n2=0,n3=0,n; do {…… 题解列表 2022年10月24日 0 点赞 0 评论 1074 浏览 评分:9.9
阶乘公式求职(c++)(怀氏) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;double fact(double n) {…… 题解列表 2022年10月24日 0 点赞 0 评论 449 浏览 评分:9.9
题目 1025: [编程入门]数组插入处理—常规求解方法 摘要:解题思路:for循环注意事项:考虑到等于的情况,等于情况下欲插入的数j放在后面参考代码:#include<stdio.h> int main(void) { int arr[10], i,…… 题解列表 2022年10月24日 0 点赞 0 评论 481 浏览 评分:9.9
题解 1126: C语言训练-字符串正反连接 按题要求建新串 摘要:解题思路: 用两个数组存放字符串,再用新数组连接起来 注意事项: 参考代码: #include #include int main() { …… 题解列表 2022年10月24日 0 点赞 0 评论 763 浏览 评分:9.9
药房管理c语言版 摘要:解题思路:本题的意思是如果病人要的药不超过总量,则给他,如果超过则不给他换下一个人继续。注意事项:参考代码:#include<stdio.h>int main(){ int m,n,i,sum=…… 题解列表 2022年10月24日 0 点赞 0 评论 785 浏览 评分:9.9
多方法求阶乘(迭代、递归) 摘要:思路:本题考的非常简单,就是自定义一个函数,然后求阶乘的倒数之和。而求阶乘有两种方法,第一种是:使用迭代求阶乘(for循环);第二种使用递归来求阶乘。 注意事项:注意数据类型,题目涉及到小数,使…… 题解列表 2022年10月24日 0 点赞 0 评论 562 浏览 评分:9.9
Hello, world!(怀氏c++) 摘要:解题思路:把数字转换成ASCI码值,就是对应的char类型值注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; …… 题解列表 2022年10月24日 0 点赞 0 评论 431 浏览 评分:9.9
A+B for Input-Output Practice (II)(怀氏c++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,a,b,i; cin>>n; for(i…… 题解列表 2022年10月24日 0 点赞 0 评论 941 浏览 评分:9.9