二级C语言-温度转换(C++版) 摘要:解题思路:这个问题的解决方法很简单,关键在于华氏温度和摄氏温度之间的转换公式,由题目可知,公式为c=5*(f-32)/9。其中c代表摄氏温度,f代表华氏温度。难点讲解:本题的难点在于结果保留两位小数输…… 题解列表 2022年08月06日 0 点赞 1 评论 726 浏览 评分:8.0
编写题解 1032: [编程入门]自定义函数之字符串连接(函数) 摘要:1.gets()函数用来从标准输入设备(键盘)读取字符串直到换行符结束,但换行符会被丢弃,然后在末尾添加'\0'字符。gets(c)将读取的字符串保存到c[]中。 2.puts()函数把字符串输出到…… 题解列表 2022年08月12日 0 点赞 0 评论 550 浏览 评分:8.0
二级C语言-统计字符 摘要:```cpp #include #include using namespace std; int main() { int a=0,b=0,c=0,d=0; char …… 题解列表 2022年08月15日 0 点赞 0 评论 339 浏览 评分:8.0
C语言训练-角谷猜想(C语言) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>#include <string.h>int main(){ //若为偶数除以2,若为奇数…… 题解列表 2022年08月15日 0 点赞 0 评论 717 浏览 评分:8.0
1151简单的解法(C) 摘要:解题思路:如下注意事项:如果复制,请复制过后检查,我提交时是正确的。参考代码:#include<stdio.h>int main(){ int a,i,c=1;//定义,注意c要初始化。 scanf…… 题解列表 2022年08月21日 0 点赞 1 评论 261 浏览 评分:8.0
1981简单的解法(C) 摘要:解题思路:如下注意事项:如果复制,请复制过后检查,我提交时是正确的。参考代码:#include<stdio.h>int main(){ int M,i,N;//定义 scanf("%d%d",&M,…… 题解列表 2022年08月21日 0 点赞 1 评论 264 浏览 评分:8.0
题解 1121: C语言训练-8除不尽的数(C) 摘要:题目:一个自然数被8除余1,所得的商被8除也余1,再将第二次的商被8除后余7,最后得到一个商为a。又知这个自然数被17除余4,所得的商被17除余15,最后得到一个商是a的2倍。求这个自然数。解题思路:…… 题解列表 2022年08月23日 0 点赞 0 评论 1117 浏览 评分:8.0
题目 1039: [编程入门]宏定义之闰年判断 摘要:```cpp #include using namespace std; int main() { int a; cin >> a; if (a % 400 ==…… 题解列表 2022年08月23日 0 点赞 2 评论 430 浏览 评分:8.0
题目 1038: [编程入门]宏定义练习之三角形面积 摘要:```cpp #include #include #include using namespace std; int main() { double a, b, c; …… 题解列表 2022年08月23日 0 点赞 9 评论 874 浏览 评分:8.0
题目 1064: 二级C语言-阶乘数列 摘要:```cpp #include #include using namespace std; int main() { double sum = 0, t = 1; for…… 题解列表 2022年08月25日 0 点赞 4 评论 511 浏览 评分:8.0