[编程入门]利润计算-题解(C语言代码) 摘要:解题思路:利用if语句解决问题注意事项:注意%意思为整除取余,并不能作为小数点位数使用,其次注意&&逻辑与的合理使用参考代码:#include<stdio.h> void main() { …… 题解列表 2020年12月23日 0 点赞 2 评论 1285 浏览 评分:8.0
C语言训练-8除不尽的数-题解(C语言代码) 摘要:解题思路:反其道而行之,把一般情况全排除就只剩下了特殊情况。注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d,i,h,e; for(i=…… 题解列表 2020年12月23日 0 点赞 0 评论 552 浏览 评分:2.0
二级C语言-进制转换-题解(Java代码) 摘要:import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2020年12月23日 0 点赞 0 评论 875 浏览 评分:0.0
C语言考试练习题_保留字母-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char n[80]; gets(n); for(int i=0;n[i]!='\0&…… 题解列表 2020年12月23日 0 点赞 0 评论 1060 浏览 评分:9.9
[编程入门]数字的处理与判断-题解(C语言代码) 摘要:#include <stdio.h>#include <math.h>int main(){ int num; scanf("%d", &num); int n = log10(num) + 1; p…… 题解列表 2020年12月23日 0 点赞 0 评论 846 浏览 评分:0.0
[编程入门]数字的处理与判断-题解(C语言代码) 摘要:#include #include int main() { int num; scanf("%d", &num); int n = log10(num) + 1; prin…… 题解列表 2020年12月23日 0 点赞 0 评论 1244 浏览 评分:0.0
[编程入门]结构体之成绩记录-题解(C语言代码) 摘要:两种解法: 1】: 》》单纯链表知识 #include #include typedef struct student { char s_num[10]; char n…… 题解列表 2020年12月23日 0 点赞 0 评论 813 浏览 评分:8.0
[编程入门]结构体之成绩记录-题解(C语言代码) 摘要:解题思路:注意事项://fgets(p->s_num,sizeof(p->s_num),stdin);//全部接收32 //fgets(p->name,sizeof(p->name), stdin)…… 题解列表 2020年12月23日 0 点赞 0 评论 548 浏览 评分:0.0
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:解题思路:本来想用enum的但是好象不行啊,枚举是应该是相应递增为1的 注意事项:月份的递增应该想到数组 参考代码: #include<stdio.h> struct Day { int …… 题解列表 2020年12月23日 0 点赞 0 评论 898 浏览 评分:0.0
[编程入门]成绩评定-题解(C语言代码) 摘要:解题思路:利用if语句解决,是个笨方法注意事项:注意输出为字符型并且在公式中赋值也是字符参考代码:#include<stdio.h> void main() { int n,m;//定义…… 题解列表 2020年12月23日 0 点赞 0 评论 627 浏览 评分:6.0