1049: [编程入门]结构体之时间设计 摘要:#include <stdio.h>#include <string.h>#include<math.h>#define PI 3.1415int main(){ …… 题解列表 2025年12月10日 1 点赞 0 评论 52 浏览 评分:0.0
菜鸟记录,菜鸟记录 摘要:解题思路:注意事项:参考代码:#include<stdio.h>typedef struct { int y…… 题解列表 2025年10月16日 1 点赞 0 评论 308 浏览 评分:10.0
结构体时间设计参考 摘要:解题思路:首先判断年份是否是闰年还是平年,如果为闰年那么2月份就是29天,反之就是28天,最后将数据存储在数组中等待读取。然后在判断月份,根据每月天数累加(当前月份前的月份累加)再加上当前月份天数,就…… 题解列表 2025年07月13日 0 点赞 0 评论 286 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:解题思路:1. 判断闰年:根据闰年规则(能被 4 整除但不能被 100 整除,或能被 400 整除)编写函数,确定年份是否为闰年,以调整 2 月天数。2. 设定每月天数:创建数组存储非闰年…… 题解列表 2025年04月10日 2 点赞 0 评论 559 浏览 评分:10.0
1049: [编程入门]结构体之时间设计 摘要:```c#include struct Data{ int year; int month; int day;}; int main() { struct…… 题解列表 2025年03月12日 1 点赞 0 评论 799 浏览 评分:0.0
结构体之时间设计 摘要:解题思路:注意事项:注意7,8月份都是31天参考代码:#include <stdio.h>int pdrn(int year);struct fal{ int y…… 题解列表 2025年02月28日 0 点赞 0 评论 448 浏览 评分: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
自己做的新手,欢迎指导 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct date{ int year; int month; int day;};int mod(int y,i…… 题解列表 2024年12月20日 8 点赞 0 评论 626 浏览 评分:10.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
[编程入门]结构体之时间设计-题解(c语言代码)附解 思路简单 摘要:#include<stdio.h> struct days{//定义结构体 int year; int month; int day; }p1; int main(){ sca…… 题解列表 2024年11月24日 4 点赞 0 评论 822 浏览 评分:8.0