1049: [编程入门]结构体之时间设计 摘要:```c#include struct Data{ int year; int month; int day;}; int main() { struct…… 题解列表 2025年03月12日 1 点赞 0 评论 475 浏览 评分:0.0
简单易懂的写法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;struct year_month_day{ …… 题解列表 2025年04月10日 1 点赞 0 评论 152 浏览 评分:10.0
1049: [编程入门]结构体之时间设计 摘要:解题思路:1. 判断闰年:根据闰年规则(能被 4 整除但不能被 100 整除,或能被 400 整除)编写函数,确定年份是否为闰年,以调整 2 月天数。2. 设定每月天数:创建数组存储非闰年…… 题解列表 2025年04月10日 1 点赞 0 评论 236 浏览 评分:0.0
结构体之时间设计 摘要:解题思路:结构体注意事项:判断闰年参考代码:#include<bits/stdc++.h>using namespace std;struct year_month_day{int yea…… 题解列表 2025年06月03日 1 点赞 0 评论 47 浏览 评分:10.0