题解 1202: 多输入输出练习1 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main(){ int b=1,c[100],d,e,i; while(sc…… 题解列表 2021年11月08日 0 点赞 0 评论 976 浏览 评分:6.0
多输入输出练习2 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define PI 3.1415 int main(){ double a,b,c; scanf("%lf",&a); …… 题解列表 2021年11月08日 0 点赞 0 评论 675 浏览 评分:9.9
易懂,适合新手 摘要:解题思路:先分别求和,在求总和注意事项:注意定义的类型,还有除的时候要记得小数参考代码:#include <stdio.h>int main(){ float a,b,c; float sum1,su…… 题解列表 2021年11月08日 0 点赞 0 评论 827 浏览 评分:0.0
简单明了又正确 摘要:解题思路:利用for循环对输入的数进行求余,若求余=0则除尽,说明不是素数,直到除到等于输入的数注意事项:break跳出循环参考代码:#include<stdio.h> void as(int a){…… 题解列表 2021年11月09日 0 点赞 0 评论 595 浏览 评分:0.0
C语言训练-阶乘和数* 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main(){ int a,b,c,d,e,f[100],g=0,h,i,j,k[1…… 题解列表 2021年11月09日 0 点赞 0 评论 708 浏览 评分:4.7
编写题解 1171: 蟠桃记 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int num(int a); int main(){ int a,b; while(scanf("%d",&a)!=EO…… 题解列表 2021年11月09日 0 点赞 0 评论 497 浏览 评分:9.9
数组插入处理。数组移位简单分析 摘要:解题思路:首先用for循环判断输入的n具体在哪个位置;在把n之后的数组往后移一位注意事项:特别要注意当数组中没有比n更大的情况,这是只需把数组按顺序输出,然后再输出n就行参考代码:#include<s…… 题解列表 2021年11月09日 0 点赞 0 评论 740 浏览 评分:9.9
不使用数组移位的方法解决该题 摘要:解题思路:判断n处于哪个位置,先输出n前面的数字,在输出n的值,然后再输出n后面的数值。注意事项:参考代码:#include<stdio.h>int main(){ int a[9],n; for (…… 题解列表 2021年11月09日 0 点赞 0 评论 533 浏览 评分:9.9
1676:链表的基本操作 #include#include#includetypedefstructlist{intdata;structlist*next;}List;List*CreatList(intn){inti;List*p,*head;head=(List*)malloc(sizeof(List));head->n 题解列表 2021年11月09日 0 点赞 0 评论 674 浏览 评分:7.3
1052链表合并(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> typedef struct node { int xh,score; struc…… 题解列表 2021年11月09日 0 点赞 0 评论 1117 浏览 评分:9.9