1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h> struct today getstruct(void); void output(struct today x); struc…… 题解列表 2024年11月11日 1 点赞 0 评论 293 浏览 评分:0.0
新手必看最简思路 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int xx(int n,int y){ int day=0,a=0; if(n%400==0||(n%4==0&&n%100!=0…… 题解列表 2024年12月12日 0 点赞 0 评论 521 浏览 评分:0.0
[编程入门]结构体之时间设计 极简利用函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int days(int i){ int t=0; int num=0; int a[13]={0,31,28,31,…… 题解列表 2024年12月26日 0 点赞 0 评论 630 浏览 评分:0.0
结构体之时间设计 摘要:解题思路:注意事项:注意7,8月份都是31天参考代码:#include <stdio.h>int pdrn(int year);struct fal{ int y…… 题解列表 2025年02月28日 0 点赞 0 评论 448 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:```c#include struct Data{ int year; int month; int day;}; int main() { struct…… 题解列表 2025年03月12日 1 点赞 0 评论 799 浏览 评分:0.0
结构体之时间设计 摘要:```#include using namespace std;struct Date { int day, month, year;};int main() {…… 题解列表 2025年07月02日 1 点赞 0 评论 321 浏览 评分:0.0
结构体时间设计参考 摘要:解题思路:首先判断年份是否是闰年还是平年,如果为闰年那么2月份就是29天,反之就是28天,最后将数据存储在数组中等待读取。然后在判断月份,根据每月天数累加(当前月份前的月份累加)再加上当前月份天数,就…… 题解列表 2025年07月13日 0 点赞 0 评论 286 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d…… 题解列表 2025年07月24日 0 点赞 1 评论 201 浏览 评分:0.0
自己用类写的,感觉没有第二版好,可以看一下。 摘要:```cpp#includeusing namespace std;class Shijian{ private: int year; int month…… 题解列表 2025年08月25日 0 点赞 0 评论 268 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:#include <stdio.h>#include <string.h>#include<math.h>#define PI 3.1415int main(){ …… 题解列表 2025年12月10日 1 点赞 0 评论 51 浏览 评分:0.0