1049: [编程入门]结构体之时间设计 摘要:```cpp #include using namespace std; struct Date { int year,mouth,day; }; int IsLeapY…… 题解列表 2023年02月24日 0 点赞 1 评论 1210 浏览 评分:9.9
c++解题思路 摘要:```cpp #include using namespace std; struct time { int year; int month; int day; };…… 题解列表 2023年03月07日 0 点赞 0 评论 230 浏览 评分:9.9
###[编程入门]结构体之时间设计-超easy版!! 摘要:###[编程入门]结构体之时间设计-超easy版!! 主要分四步: 1. 创建结构体 2. 判断年份是否为闰年 3. 记录各月份的总天数 4. 对天数累加 先看代码 #i…… 题解列表 2023年04月03日 0 点赞 0 评论 247 浏览 评分:9.9
结构体之时间设计 摘要:解题思路:注意事项:参考代码:a,b,c = map(int,input().split())#输入list1 = [31,29,31,30,31,30,31,31,30,31,30,31]#闰年每月…… 题解列表 2023年04月07日 0 点赞 0 评论 267 浏览 评分:9.9
C语言最简单的实现代码 摘要:解题思路:年份和日期先不管,通过月份输出天数,sum(总天数)=mon(月份天数)+day(日天数)+year(是否闰年)注意事项:喵喵喵喵喵~嗷呜~嗷呜嗷呜嗷嗷嗷嗷嗷嗷嗷嗷呜~喵喵~喵喵喵喵喵喵喵喵…… 题解列表 2023年08月10日 0 点赞 0 评论 175 浏览 评分:9.9
1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; //定义日期结构体 struct Date { int year; …… 题解列表 2023年09月24日 0 点赞 0 评论 184 浏览 评分:9.9
三种方式实现输出计算该日在本年中是第几天 摘要:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<string.h>typedef struct time { //这里的time是结…… 题解列表 2023年10月29日 0 点赞 0 评论 262 浏览 评分:9.9
[编程入门]结构体之时间设计-题解(Python代码) 摘要:解题思路:注意事项:参考代码:year,mouth,day=map(int,input().split())list1=[31,28,31,30,31,30,31,31,30,31,30,31]if …… 题解列表 2023年11月04日 1 点赞 0 评论 309 浏览 评分:9.9
结构体之时间设计(小白易懂) 摘要:小白易懂参考代码:#include <stdio.h>int main(int argc, char *argv[]){ struct jsts { int year; int month; int …… 题解列表 2023年11月17日 0 点赞 0 评论 199 浏览 评分:9.9
1049: [编程入门]结构体之时间设计 摘要:题目解读:这道题就是给我们日期,让我们通过程序计算出该日期是这一年的第几天。解题思路及代码: 首先,我们要定义用于存储年,月,日的变量。在这里有两个方法,第一种如题目名,用定义结构体的方法…… 题解列表 2023年11月26日 0 点赞 0 评论 314 浏览 评分:9.9