[编程入门]结构体之时间设计 2种解法 摘要:未运用结构体#include struct Date{ int nian; int yue; int ri; }; int main() { int a=0,m,n,i,j; s…… 题解列表 2021年10月14日 0 点赞 0 评论 197 浏览 评分:9.9
666 必看 进入惊喜 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y,n,z,j; scanf("%d%d%d",&x,&y,&n); { if(x%4==0) …… 题解列表 2021年09月11日 0 点赞 0 评论 261 浏览 评分:9.9
[编程入门]结构体之时间设计-题解(C语言) 摘要:```c #include int runyear(int year) { if(year%400==0||(year%4==0&&year%100!=0)) return 1; …… 题解列表 2021年09月09日 0 点赞 0 评论 175 浏览 评分:0.0
利用数组解决天数问题 摘要:解题思路:计算天数 首先判断是否为闰年,差别就体现在二月份28或29天 每个月的天数可以存放在数组中 输入的几号最后直接相加即可 注意事项: 本题未要求判断输入数值,但最好还是加入判…… 题解列表 2021年08月15日 0 点赞 0 评论 394 浏览 评分:9.9
数组结构体时间设计 摘要:#include<stdio.h>typedef struct today{ int year; int month; int day;}today;int main(){ today date; i…… 题解列表 2021年08月07日 0 点赞 0 评论 205 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:```c //1049: [编程入门]结构体之时间设计 /* 平年: 1、3、5、7、8、10、12:31天 4、6、9、11:30天 2:28天 闰年: 1、3、…… 题解列表 2021年07月15日 0 点赞 0 评论 353 浏览 评分:9.9
题解 1049: [编程入门]结构体之时间设计 摘要:注意闰年的判断方法和switch的应用 #include #include #include int main() { …… 题解列表 2021年07月04日 0 点赞 0 评论 259 浏览 评分:0.0
结构体之时间设计C语言 摘要:解题思路:这是最容易想到的解法,把每种情况列举出来。注意事项:参考代码:#include <stdio.h>struct Stu{ int year; int month; int date;};in…… 题解列表 2021年05月27日 0 点赞 0 评论 192 浏览 评分:0.0
7月和8月都是大月,都是31天,所以在这里进行分类就可以很好解决这个问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef struct node{ int year; int month; …… 题解列表 2021年05月11日 0 点赞 0 评论 366 浏览 评分:6.0
最笨的方法 摘要:解题思路:首先输入结构体一变量的年月日,然后转到count函数先对闰年进行判断,取余为零的就是闰年。下一步到对月份的判断,在把每个月份的数累加参考代码:#include <stdio.h>int co…… 题解列表 2021年05月07日 0 点赞 0 评论 261 浏览 评分:6.0