二级C语言-求偶数和-malloc函数与数组指针 摘要:解题思路: 对于要求输入n的大小而形成的数组,一般的数组在申请内存空间时并不能使用未知参数。所以可以用malloc函数来申请含参数的数组空间。注意事项: malloc函数需…… 题解列表 2021年09月04日 0 点赞 0 评论 562 浏览 评分:0.0
水仙花数问题 摘要:解题思路:输入一个数,分别求出个十百位,使用次方函数与原数比较_ueditor_page_break_tag_注意事项:pow函数需要引入<math.h>头文件参考代码:#include<iostre…… 题解列表 2021年09月04日 0 点赞 0 评论 525 浏览 评分:0.0
十->二进制转换qwdddddqwdq 摘要:解题思路:注意事项:参考代码:#include "stdio.h"int main() { int ten; int two[100]; while (scanf("%d", &ten) != EOF…… 题解列表 2021年09月05日 0 点赞 0 评论 793 浏览 评分:0.0
编写题解 1197: 发工资咯 摘要:解题思路:注意事项:参考代码:#include "stdio.h"int main() { int n; int M; while (scanf("%d", &n) != EOF) {int k =…… 题解列表 2021年09月05日 0 点赞 0 评论 695 浏览 评分:0.0
1737: 二叉搜索树 C++/Java #####二叉搜索树又名二叉排序树#####性质:二叉树的任一子树,其(结点值)左孩子l,num);}else{//num小于当前结点值,前往其右子树create(T->r,num);}}}voiddfs(treeT,string&s,intx){if(x==1){if(T!=NULL){//先序遍历 题解列表 2021年09月05日 0 点赞 0 评论 1013 浏览 评分:9.9
代码还是很简单的!!!! 摘要:解题思路 题目要求用6.2f的格式,意思就是用占位符 %6.2f 的形式来输出 &nbs 题解列表 2021年09月05日 0 点赞 0 评论 734 浏览 评分:0.0
【C++】非常好的一段代码,容易理解 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;bool isprime(int x){ bool flag = false; if(x <…… 题解列表 2021年09月06日 0 点赞 0 评论 525 浏览 评分:0.0
无需指针的数字后移 摘要:解题思路:将最后的数字存起来,循环一次后放在第一位注意事项:参考代码:#include "stdio.h"int main(){ int a,b[1000],c,temp; scanf("…… 题解列表 2021年09月06日 0 点赞 0 评论 878 浏览 评分:0.0
简单计算机器C语言实现 摘要:```c #include void main() { int c,number1,number2; scanf("%d%c%d",&number1,&c,&number2); sw…… 题解列表 2021年09月06日 0 点赞 0 评论 1023 浏览 评分:9.9
数组插入处理 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#include <math.h>#include<stdio.h>int main (){ i…… 题解列表 2021年09月06日 0 点赞 0 评论 519 浏览 评分:9.9