温度转换(C++) 摘要:解题思路:注意事项:输出格式参考代码:#include<iostream>using namespace std;float cyof(int c){ float f; f=32+c*9/…… 题解列表 2022年10月24日 0 点赞 0 评论 618 浏览 评分:9.9
成绩归类(c++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n1=0,n2=0,n3=0,n; do {…… 题解列表 2022年10月24日 0 点赞 0 评论 1253 浏览 评分:9.9
阶乘公式求职(c++)(怀氏) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;double fact(double n) {…… 题解列表 2022年10月24日 0 点赞 0 评论 629 浏览 评分:9.9
题目 1025: [编程入门]数组插入处理—常规求解方法 摘要:解题思路:for循环注意事项:考虑到等于的情况,等于情况下欲插入的数j放在后面参考代码:#include<stdio.h> int main(void) { int arr[10], i,…… 题解列表 2022年10月24日 0 点赞 0 评论 780 浏览 评分:9.9
题解 1126: C语言训练-字符串正反连接 按题要求建新串 解题思路:用两个数组存放字符串,再用新数组连接起来注意事项:参考代码:#include#includeintmain(){chara[50],b[50],c[100];inti=0,j,len_a,x;gets(a);//puts(a);//测试用len_a=strlen(a);x=len_a;for 题解列表 2022年10月24日 0 点赞 0 评论 973 浏览 评分:9.9
药房管理c语言版 摘要:解题思路:本题的意思是如果病人要的药不超过总量,则给他,如果超过则不给他换下一个人继续。注意事项:参考代码:#include<stdio.h>int main(){ int m,n,i,sum=…… 题解列表 2022年10月24日 0 点赞 0 评论 1001 浏览 评分:9.9
多方法求阶乘(迭代、递归) 思路:本题考的非常简单,就是自定义一个函数,然后求阶乘的倒数之和。而求阶乘有两种方法,第一种是:使用迭代求阶乘(for循环);第二种使用递归来求阶乘。注意事项:注意数据类型,题目涉及到小数,使用double或者float类型即可```c#includedoublefact(intx){inti;dou 题解列表 2022年10月24日 0 点赞 0 评论 820 浏览 评分:9.9
Hello, world!(怀氏c++) 摘要:解题思路:把数字转换成ASCI码值,就是对应的char类型值注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; …… 题解列表 2022年10月24日 0 点赞 0 评论 645 浏览 评分: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 评论 1129 浏览 评分:9.9
作为第一个题解我很荣幸 摘要:解题思路:利用getline可以正常输入空格注意事项:注意i和i-1参考代码:c++:#include <bits/stdc++.h>using namespace std;/*inline int …… 题解列表 2022年10月24日 0 点赞 0 评论 818 浏览 评分:9.9