C语言训练-"水仙花数"问题1-题解 摘要:解题思路:先取出各位数,再分别立方,并用if else判断,思路很简洁。。。。新手勿喷。注意事项:自定义函数参考代码:#include<stdio.h>double power(double n,in…… 题解列表 2022年11月08日 0 点赞 0 评论 525 浏览 评分:0.0
简单粗暴的解法 摘要:解题思路:立方用自定义函数,主函数用for循环注意事项:参考代码:#include<stdio.h>double power(double n,int p){ int i;double pow=1; …… 题解列表 2022年11月08日 0 点赞 0 评论 655 浏览 评分:7.3
用数组遍历来求平均数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int sum,i; int arr[10]; for(i=0;i<10;i++){ …… 题解列表 2022年11月09日 0 点赞 0 评论 322 浏览 评分:0.0
二叉排序树的实现(主要语言是C,只是用了C++的引用) 摘要:```cpp #include #include typedef int ElemType; typedef struct BiNode{ ElemType data; …… 题解列表 2022年11月09日 0 点赞 0 评论 478 浏览 评分:0.0
求总时间.... 摘要:#include<stdio.h>int main(){int i,N;float time=30,sum=0;scanf("%d",&N);for(i=1;i<N;i++){ sum+=time; …… 题解列表 2022年11月09日 0 点赞 0 评论 384 浏览 评分:0.0
完数的判断(一般解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int i,j,a[100],m,x; int N,s; scanf…… 题解列表 2022年11月09日 0 点赞 0 评论 290 浏览 评分:0.0
应该是这个吧 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float a; double b; scanf("%f%lf",&a,&b); pri…… 题解列表 2022年11月09日 0 点赞 2 评论 879 浏览 评分:7.3
数组的选择排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10],i,t,k,j; for(i=0;i<10;i++) …… 题解列表 2022年11月09日 0 点赞 0 评论 361 浏览 评分:0.0
画矩形(C语言简便易懂) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,n,i,j; char cl; scanf("%d %d %c %d",…… 题解列表 2022年11月09日 0 点赞 0 评论 525 浏览 评分:9.7
这么简单的题还属于中档题? 摘要:解题思路:基本操作注意事项:这有什么注意的,直接五星好评参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); …… 题解列表 2022年11月09日 1 点赞 0 评论 1218 浏览 评分:10.0