2771: 大象喝水 摘要:```cpp #include #include #define pi 3.14159 using namespace std; int main() { int h, r;…… 题解列表 2023年11月22日 0 点赞 0 评论 222 浏览 评分:6.0
2774: 计算三角形面积(利用海伦公式) 摘要:```cpp #include #include #include using namespace std; int main() { float x1, y1, x2, y…… 题解列表 2023年11月22日 0 点赞 0 评论 478 浏览 评分:6.0
大整数加法的双向链表写法 摘要:参考代码:#include<stdio.h> #include<stdlib.h> #include<string.h> struct lennum{ int num; struct l…… 题解列表 2023年11月22日 0 点赞 0 评论 209 浏览 评分:6.0
蓝桥杯算法训练VIP-整数平均值(指针) 摘要:解题思路:注意事项:参考代码:// 包含标准输入输出库 #include <stdio.h> // 定义一个函数myave,用于计算整数数组a的平均值 // 参数a是整数数组的首地址,sz是…… 题解列表 2023年11月23日 0 点赞 0 评论 579 浏览 评分:6.0
1762: printf基础练习 摘要:注意事项:带前缀要加#参考代码:#include<iostream> using namespace std; int main() { int t=123456789; …… 题解列表 2023年11月24日 0 点赞 0 评论 772 浏览 评分:6.0
奇偶ASCII值判断 摘要:参考代码:#include<stdio.h> int main() { char a; scanf("%c",&a); if(a%2==0){ pr…… 题解列表 2023年11月29日 0 点赞 0 评论 642 浏览 评分:6.0
自定义函数处理素数——C语言;调用函数;易懂; 摘要:解题思路: 素数是除1和它本身之外没有它能除尽的数,所以使用循环与选择结构解题;注意事项: 一定注意不能在循环中使用if判断素数,否则会出现一串字母;所以定义一个新变量作为记录是否有数能被你…… 题解列表 2023年11月30日 0 点赞 0 评论 332 浏览 评分:6.0
c++ 边乘边加 摘要:#include<iostream> using namespace std; int a[1000],b[1000]; void cheng(int a[],int c) { int j…… 题解列表 2023年11月30日 0 点赞 0 评论 431 浏览 评分:6.0
2846: 统计数字字符个数 摘要:解题思路:这道题涉及了字符串,我们就需要头文件<string.h>,按照题目要求,输入字符会包含空格,所以我们输入不再使用scanf,而是使用gets()。注意事项:在遍历数组中的字符串是,我们要明白…… 题解列表 2023年11月30日 0 点赞 0 评论 694 浏览 评分:6.0