[编程入门]结构体之时间设计(一看就懂) 摘要:```java Scanner sc = new Scanner(System.in); int year = sc.nextInt(); int Month = sc.nex…… 题解列表 2021年03月25日 0 点赞 0 评论 757 浏览 评分: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 评论 559 浏览 评分: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 评论 621 浏览 评分:9.9
利用数组解决天数问题 摘要:解题思路:计算天数 首先判断是否为闰年,差别就体现在二月份28或29天 每个月的天数可以存放在数组中 输入的几号最后直接相加即可 注意事项: 本题未要求判断输入数值,但最好还是加入判…… 题解列表 2021年08月15日 0 点赞 0 评论 539 浏览 评分: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 评论 359 浏览 评分: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 评论 274 浏览 评分:9.9
结构体之时间设计 摘要:解题思路:先定义时间结构体:struct time{ int year; int month; int day; }; 定义主函数,和结构体联系起来: int ma…… 题解列表 2021年10月22日 0 点赞 0 评论 246 浏览 评分:9.9
1049: [编程入门]结构体之时间设计--java自定义类 摘要:解题思路:定义一个类分别为年、月、日。输入一行字符串,定义一个字符串数组用空格为划分符将字符串划分定义一个整形数组将字符串数组中三个元素转为int类型年 = 字符串数组【0】月 = 字符串数组【1】日…… 题解列表 2021年12月11日 0 点赞 0 评论 460 浏览 评分:9.9
编写题解 1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct Date{ int year; int month; int day;}time;//设置一个结构体int main(){…… 题解列表 2021年12月22日 0 点赞 0 评论 307 浏览 评分:9.9
创建两个数组即可 摘要:解题思路:注意事项:参考代码:#include<stdio.h> typedef struct input_time{ int year; int month; int…… 题解列表 2022年01月11日 0 点赞 0 评论 226 浏览 评分:9.9