1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;struct date{ int n,y,r;};int m[13]= {0…… 题解列表 2023年12月09日 0 点赞 0 评论 292 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:题目解读:这道题就是给我们日期,让我们通过程序计算出该日期是这一年的第几天。解题思路及代码: 首先,我们要定义用于存储年,月,日的变量。在这里有两个方法,第一种如题目名,用定义结构体的方法…… 题解列表 2023年11月26日 0 点赞 0 评论 322 浏览 评分:9.9
1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; //定义日期结构体 struct Date { int year; …… 题解列表 2023年09月24日 0 点赞 0 评论 186 浏览 评分:9.9
优质题解 1049: [编程入门]结构体之时间设计,c++ 摘要:# DOTCPP1049: **题目描述:** [DOTCPP1024:计算该日在本年中是第几天(结构体之时间设计)](http://https://www.dotcpp.com/oj/prob…… 题解列表 2023年08月15日 0 点赞 1 评论 769 浏览 评分:6.0
1049: [编程入门]结构体之时间设计 摘要:解题思路:题目主要要搞清楚什么是闰年,什么是平年,然后闰年每个月有多少天,平年每个月有多少天。注意事项:参考代码:#include <bits/stdc++.h> using namespace s…… 题解列表 2023年05月09日 0 点赞 0 评论 150 浏览 评分:0.0
编程入门]结构体之时间设计 想了好久 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;struct time{ int year; int month; int day;};int…… 题解列表 2023年04月05日 0 点赞 0 评论 186 浏览 评分:0.0
###[编程入门]结构体之时间设计-超easy版!! 摘要:###[编程入门]结构体之时间设计-超easy版!! 主要分四步: 1. 创建结构体 2. 判断年份是否为闰年 3. 记录各月份的总天数 4. 对天数累加 先看代码 #i…… 题解列表 2023年04月03日 0 点赞 0 评论 252 浏览 评分:9.9
c++解题思路 摘要:```cpp #include using namespace std; struct time { int year; int month; int day; };…… 题解列表 2023年03月07日 0 点赞 0 评论 234 浏览 评分:9.9
1049: [编程入门]结构体之时间设计 摘要:```cpp #include using namespace std; struct Date { int year,mouth,day; }; int IsLeapY…… 题解列表 2023年02月24日 0 点赞 1 评论 1212 浏览 评分:9.9
1049: [编程入门]结构体之时间设计 摘要:```cpp #include int month[13]={0,31,28,31,30,31,30,31,31,30,31,30,31},i,sum=0; struct time { i…… 题解列表 2022年12月06日 0 点赞 0 评论 222 浏览 评分:9.9