两种方法 结构体解决问题 or 一个简单for循环解决问题(简单逻辑) 摘要:解题思路:注意事项:参考代码://一个简单for循环解决问题#include<stdio.h>int main ( ){ int num=7 , sum=0 , school=0 ,class=…… 题解列表 2024年12月05日 0 点赞 0 评论 589 浏览 评分:0.0
C语言 结构体+主函数一维数组 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct Student{ char name[30] ; //名字 int average ; //平均分…… 题解列表 2024年12月05日 1 点赞 0 评论 527 浏览 评分:0.0
1121: C语言训练-8除不尽的数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int b =1,a,c,d,f,g; while(b++){ d =b/8; f = d/8; if (…… 题解列表 2024年12月04日 2 点赞 0 评论 740 浏览 评分:0.0
[编程入门]自由下落的距离计算--巨无敌容易看懂(C语言) 摘要:解题思路:将下落过程加上后,将每落地一次变成落地前的一半并加到路程中,并注意最后一次反弹时不加入到路程中注意事项:要注意变量的定义参考代码:#include<stdio.h>int main(){ …… 题解列表 2024年12月04日 9 点赞 0 评论 1482 浏览 评分:10.0
利用最小公约数求最大公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int gony(int m,int n){ int r; if(m==n) return m; else while((r=m%n…… 题解列表 2024年12月04日 0 点赞 0 评论 487 浏览 评分:0.0
c语言代码易懂 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){ int m,n,sum=0; scanf ("%d %d",…… 题解列表 2024年12月04日 0 点赞 0 评论 560 浏览 评分:2.0
普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int b; for (b = 100;b<1000;b++) { if…… 题解列表 2024年12月04日 0 点赞 0 评论 813 浏览 评分:0.0
普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int b,bjg = 0,yx = 0,hx = 0; scanf("%d…… 题解列表 2024年12月04日 0 点赞 0 评论 945 浏览 评分:0.0
三元组输入,用二维数组输出 解题思路:1.输入时非0元素直接记录到三元组中2.创建一个二维数组保存输出数组3.遍历三元组,对行列下标进行交换,放进二维数组中输出注意事项:1.二维数组的初始大小为,C*R,C变成二维数组的行数,R变为二维数组的列数参考代码:#include#include#i 题解列表 2024年12月04日 0 点赞 0 评论 509 浏览 评分:0.0
新手 晶晶赴会 摘要:解题思路:简单判断邀约的星期是否为偶数注意事项:参考代码#include<stdio.h>int main(){ int a; scanf("%d",&a); if(a%2==0) …… 题解列表 2024年12月04日 1 点赞 0 评论 440 浏览 评分:0.0