1676:链表的基本操作 摘要: #include #include #include typedef struct list { int data; …… 题解列表 2021年11月09日 0 点赞 0 评论 361 浏览 评分:7.3
不使用数组移位的方法解决该题 摘要:解题思路:判断n处于哪个位置,先输出n前面的数字,在输出n的值,然后再输出n后面的数值。注意事项:参考代码:#include<stdio.h>int main(){ int a[9],n; for (…… 题解列表 2021年11月09日 0 点赞 0 评论 271 浏览 评分:9.9
数组插入处理。数组移位简单分析 摘要:解题思路:首先用for循环判断输入的n具体在哪个位置;在把n之后的数组往后移一位注意事项:特别要注意当数组中没有比n更大的情况,这是只需把数组按顺序输出,然后再输出n就行参考代码:#include<s…… 题解列表 2021年11月09日 0 点赞 0 评论 437 浏览 评分:9.9
编写题解 1171: 蟠桃记 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int num(int a); int main(){ int a,b; while(scanf("%d",&a)!=EO…… 题解列表 2021年11月09日 0 点赞 0 评论 232 浏览 评分:9.9
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 评论 277 浏览 评分:4.7
简单明了又正确 摘要:解题思路:利用for循环对输入的数进行求余,若求余=0则除尽,说明不是素数,直到除到等于输入的数注意事项:break跳出循环参考代码:#include<stdio.h> void as(int a){…… 题解列表 2021年11月09日 0 点赞 0 评论 263 浏览 评分:0.0
易懂,适合新手 摘要:解题思路:先分别求和,在求总和注意事项:注意定义的类型,还有除的时候要记得小数参考代码:#include <stdio.h>int main(){ float a,b,c; float sum1,su…… 题解列表 2021年11月08日 0 点赞 0 评论 339 浏览 评分:0.0
多输入输出练习2 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define PI 3.1415 int main(){ double a,b,c; scanf("%lf",&a); …… 题解列表 2021年11月08日 0 点赞 0 评论 385 浏览 评分:9.9
题解 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 评论 607 浏览 评分:6.0
编写题解 1218: 排列 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int a,b,c[4],d,e,f,g,h; scanf("%d",&a); for(b=0;…… 题解列表 2021年11月08日 0 点赞 0 评论 185 浏览 评分:9.9