1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h> struct tim { int y; int m; int d; }; int ispr(int…… 题解列表 2022年06月20日 0 点赞 0 评论 91 浏览 评分:0.0
结构体之时间设计 摘要:解题思路:可参考注释注意事项:参考代码:#include<stdio.h> struct Date{ int year; int month; int day; };…… 题解列表 2022年05月24日 0 点赞 0 评论 101 浏览 评分:0.0
编写题解 1049: [编程入门]结构体之时间设计 摘要:解题思路:好像没什么问题,但是运行还是有百分之五十不通过,望各位大佬指点。注意事项:参考代码:year,month,day = map(int,input().split())sum = 0if (y…… 题解列表 2022年05月22日 0 点赞 0 评论 123 浏览 评分:0.0
用结构体表达时间并进行运用 摘要:解题思路:注意事项:2月注意常规的闰年判断参考代码:#include <stdio.h>struct Ymd{ unsigned int year; unsigned int month; unsig…… 题解列表 2022年05月15日 0 点赞 0 评论 156 浏览 评分:9.9
1049:[编程入门]结构体之时间设计 摘要:```c #include typedef struct YMD{ int YEAR; int MON; int DAY; }YMD; int judge_leap(YMD da…… 题解列表 2022年05月09日 0 点赞 0 评论 181 浏览 评分:0.0
新手结构体 希望能帮到你! 摘要:```c #include int main() { struct time { int y; int m; int d; }time; scanf("%d …… 题解列表 2022年05月05日 0 点赞 0 评论 216 浏览 评分:0.0
[编程入门]时间设计 摘要:解题思路:数组定义来累加注意事项:判断闰年参考代码:#include<bits/stdc++.h>using namespace std;int a,b,c,s,z[15]={0,31,28,31,3…… 题解列表 2022年05月05日 0 点赞 0 评论 152 浏览 评分:0.0
编写题解 1049: [编程入门]结构体之时间设计 摘要:解题思路:不使用数组,变量是随便定义的注意事项:8月是31天,十一月是30参考代码:#include<iostream>using namespace std;struct day { int yea…… 题解列表 2022年04月24日 0 点赞 0 评论 213 浏览 评分:9.9
结构体之时间设计 摘要:解题思路:将12个月每个月的天数保存在一个一维数组中。再判断输入的年份是否为闰年,如果是,就更换一维数组中2月份的总天数。之后将前几个月的总天数累加,再加上这个月的天数,得到的就是今年时一年中的第几天…… 题解列表 2022年04月23日 0 点赞 0 评论 182 浏览 评分:9.9
【鼠鼠】用结构体的方法,适合小白 摘要:``````cpp #include //#include #include #include #include #include using namespace std; str…… 题解列表 2022年04月23日 0 点赞 0 评论 192 浏览 评分:0.0