1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d…… 题解列表 2025年07月24日 0 点赞 0 评论 46 浏览 评分:0.0
结构体之时间设计 摘要:```#include using namespace std;struct Date { int day, month, year;};int main() {…… 题解列表 2025年07月02日 1 点赞 0 评论 212 浏览 评分:0.0
结构体之时间设计 摘要:解题思路:结构体注意事项:判断闰年参考代码:#include<bits/stdc++.h>using namespace std;struct year_month_day{int yea…… 题解列表 2025年06月03日 1 点赞 0 评论 182 浏览 评分:10.0
简单易懂的写法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;struct year_month_day{ …… 题解列表 2025年04月10日 2 点赞 0 评论 227 浏览 评分:10.0
1049:结构体之时间设计--思路 #C++ 摘要:##### 闰年条件 1. 4 的倍数 2. 400 的倍数 ```cpp year % 4 == 0 && year % 100 != 0 //% 取模 ``` ```cpp …… 题解列表 2024年09月17日 1 点赞 0 评论 296 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;struct tim{ ll n;…… 题解列表 2024年07月16日 0 点赞 0 评论 213 浏览 评分:9.9
考察经典Switch语句的用法 摘要:解题思路:考察经典Switch语句的用法注意事项:注意switch语句是先找到符合项才继续执行的,时间久了,有点忘了参考代码:#include<iostream> using namespace s…… 题解列表 2024年06月13日 1 点赞 0 评论 328 浏览 评分:9.9
C++ 时间设计(涉及简单结构体使用) 摘要:```cpp #include using namespace std; //结构体 struct date{ int year; int month; int day; …… 题解列表 2024年01月31日 0 点赞 0 评论 182 浏览 评分:9.9
结构体之时间设计 摘要:解题思路:先根据年份判断平闰年调用函数实现天数判断最后返回天数即可注意事项:在定义类的时候不能定义为已有的函数名称,否则报错参考代码:#include<iostream>using namespace…… 题解列表 2024年01月27日 0 点赞 0 评论 165 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;struct date{ int n,y,r;};int m[13]= {0…… 题解列表 2023年12月09日 0 点赞 0 评论 263 浏览 评分:0.0