[编程入门]结构体之时间设计-题解(C语言代码) 摘要:解题思路:首先建立结构体,输入年月日,判断是否为闰年,然后建立一个数组进行输出,简简单单,通俗易懂注意事项:遍历时最后一天用输入的那个天数要加上参考代码:#include<iostream> usi…… 题解列表 2021年02月19日 0 点赞 0 评论 444 浏览 评分:9.9
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdbool.h>typedef struct{ int year; int month; int day; …… 题解列表 2021年02月19日 0 点赞 0 评论 244 浏览 评分:9.9
[编程入门]结构体之时间设计(25行简单易懂实现)(JAVA) 摘要:解题思路:闰年的问题,闰年二月有29天,平年二月有28天普通闰年:公历年份是4的倍数的,且不是100的倍数。世纪闰年:公历年份是整百数的,必须是400的倍数才是世纪闰年。注意事项: 当为一二月的时候…… 题解列表 2021年03月13日 0 点赞 0 评论 356 浏览 评分:9.9
思路简单,清晰明了 摘要: #基本上用汉语怎么求,代码就怎么求 #####根据月份统计天数,之后相加 ``` #include using namespace std; struct Node { int y…… 题解列表 2021年03月21日 0 点赞 0 评论 377 浏览 评分:9.9
[编程入门]结构体之时间设计(一看就懂) 摘要:```java Scanner sc = new Scanner(System.in); int year = sc.nextInt(); int Month = sc.nex…… 题解列表 2021年03月25日 0 点赞 0 评论 443 浏览 评分:9.9
简单暴力破解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int month1[12]={31,28,31,30,31,30,31,31,30,31,30,31}…… 题解列表 2021年04月17日 0 点赞 0 评论 426 浏览 评分:9.9
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 评论 352 浏览 评分:9.9
利用数组解决天数问题 摘要:解题思路:计算天数 首先判断是否为闰年,差别就体现在二月份28或29天 每个月的天数可以存放在数组中 输入的几号最后直接相加即可 注意事项: 本题未要求判断输入数值,但最好还是加入判…… 题解列表 2021年08月15日 0 点赞 0 评论 393 浏览 评分: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
[编程入门]结构体之时间设计 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 评论 196 浏览 评分:9.9