C语言训练-"水仙花数"问题1-题解 摘要:解题思路:先取出各位数,再分别立方,并用if else判断,思路很简洁。。。。新手勿喷。注意事项:自定义函数参考代码:#include<stdio.h>double power(double n,in…… 题解列表 2022年11月08日 0 点赞 0 评论 642 浏览 评分:0.0
用数组遍历来求平均数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int sum,i; int arr[10]; for(i=0;i<10;i++){ …… 题解列表 2022年11月09日 0 点赞 0 评论 464 浏览 评分:0.0
二叉排序树的实现(主要语言是C,只是用了C++的引用) ```cpp#include#includetypedefintElemType;typedefstructBiNode{ElemTypedata;structBiNode*lchild,*rchild;}BiNode,*BSTree;boolInsertBST(BSTree&root, 题解列表 2022年11月09日 0 点赞 0 评论 637 浏览 评分: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 评论 527 浏览 评分:0.0
完数的判断(一般解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int i,j,a[100],m,x; int N,s; scanf…… 题解列表 2022年11月09日 0 点赞 0 评论 449 浏览 评分:0.0
数组的选择排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10],i,t,k,j; for(i=0;i<10;i++) …… 题解列表 2022年11月09日 0 点赞 0 评论 480 浏览 评分:0.0
C语言要怎么写啊,感觉我的不太行 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int arr[3]; for (int i = 0; i < 3; i++) sc…… 题解列表 2022年11月09日 0 点赞 1 评论 582 浏览 评分:0.0
1093: 字符逆序 #include#includeintmain(){chararr[100]={'\0'};fgets(arr,100,stdin);//fgets()会把读入字符串中intr=strlen(arr);if(arr[r-1]=='\n')//判断该位是\n或者EOF{r-=2;}intl=0;char 题解列表 2022年11月09日 0 点赞 0 评论 496 浏览 评分:0.0
暴力列举之三个字符串的排序,暴力就完事了 摘要:解题思路:暴力列举,说实话,六种情况有点烦,要写哪个三目操作符的话我头皮发麻,直接列举三个字符串比较的结果好吧注意事项:参考代码:int main(){ int str1[100], str2[…… 题解列表 2022年11月09日 0 点赞 0 评论 454 浏览 评分:0.0
登陆验证问题(一)更易新手理解 摘要:#include #include int main() { char p[2][100]; int i, j; for (i = 0; i < 2; i++) { get…… 题解列表 2022年11月09日 0 点赞 0 评论 610 浏览 评分:0.0