编写题解 1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;struct date{ int year; int month; int …… 题解列表 2022年03月13日 0 点赞 0 评论 470 浏览 评分:0.0
简单的结构体定义 摘要:解题思路:定义一个结构体判断平年还是闰年取值输出即可注意事项:函数内一定加struct参考代码:#include<stdio.h>struct shijian//定义一个结构体{ int yea…… 题解列表 2022年03月18日 0 点赞 0 评论 494 浏览 评分:0.0
编写题解 1049: [编程入门]结构体之时间设计 摘要:解题思路:先判断平闰年,并用数组列出该年每月天数,遍历前几个月的天数求和后加上输入的几号即为结果。注意事项:参考代码:#include<stdio.h>struct dijitian{ int …… 题解列表 2022年04月06日 0 点赞 0 评论 488 浏览 评分:0.0
思路挺清晰的,值得一看 摘要:解题思路:注意事项:参考代码://结构体之时间设计//定义一个结构体变量(包括年、月、日)。//计算该日在本年中是第几天,注意闰年问题。#include <stdio.h>struct date { …… 题解列表 2022年04月12日 0 点赞 0 评论 547 浏览 评分:0.0
【鼠鼠】用结构体的方法,适合小白 摘要:``````cpp #include //#include #include #include #include #include using namespace std; str…… 题解列表 2022年04月23日 0 点赞 0 评论 482 浏览 评分: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 评论 401 浏览 评分:0.0
新手结构体 希望能帮到你! 摘要:```c #include int main() { struct time { int y; int m; int d; }time; scanf("%d …… 题解列表 2022年05月05日 0 点赞 0 评论 531 浏览 评分:0.0
1049:[编程入门]结构体之时间设计 摘要:```c #include typedef struct YMD{ int YEAR; int MON; int DAY; }YMD; int judge_leap(YMD da…… 题解列表 2022年05月09日 0 点赞 0 评论 426 浏览 评分:0.0
编写题解 1049: [编程入门]结构体之时间设计 摘要:解题思路:好像没什么问题,但是运行还是有百分之五十不通过,望各位大佬指点。注意事项:参考代码:year,month,day = map(int,input().split())sum = 0if (y…… 题解列表 2022年05月22日 0 点赞 0 评论 400 浏览 评分:0.0
结构体之时间设计 摘要:解题思路:可参考注释注意事项:参考代码:#include<stdio.h> struct Date{ int year; int month; int day; };…… 题解列表 2022年05月24日 0 点赞 0 评论 514 浏览 评分:0.0