[编程入门]结构体之时间设计 极简利用函数 摘要:解题思路:注意事项:参考代码:#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 评论 579 浏览 评分:0.0
自己做的新手,欢迎指导 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct date{ int year; int month; int day;};int mod(int y,i…… 题解列表 2024年12月20日 8 点赞 0 评论 546 浏览 评分: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 评论 466 浏览 评分:0.0
[编程入门]结构体之时间设计-题解(c语言代码)附解 思路简单 摘要:#include<stdio.h> struct days{//定义结构体 int year; int month; int day; }p1; int main(){ sca…… 题解列表 2024年11月24日 4 点赞 0 评论 729 浏览 评分:8.0
1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h> struct today getstruct(void); void output(struct today x); struc…… 题解列表 2024年11月11日 1 点赞 0 评论 245 浏览 评分:0.0
1049: [编程入门]结构体之时间设计(python) 摘要: ~~~python def is_lun(y): if y%100 == 0: if y%400 == 0: return True …… 题解列表 2024年10月24日 1 点赞 0 评论 200 浏览 评分:0.0
编写题解 1049: [编程入门]结构体之时间设计(Java代码-简单易懂) 摘要:参考代码:import java.util.Scanner; //定义一个结构体 年 月 日 class Date{ int year; int month; int date;…… 题解列表 2024年09月20日 0 点赞 0 评论 291 浏览 评分:9.9
编写题解 1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>// 定义日期结构体struct Date { int year; int month; int day;};// …… 题解列表 2024年09月20日 0 点赞 0 评论 226 浏览 评分:0.0
1049:结构体之时间设计--思路 #C++ 摘要:##### 闰年条件 1. 4 的倍数 2. 400 的倍数 ```cpp year % 4 == 0 && year % 100 != 0 //% 取模 ``` ```cpp …… 题解列表 2024年09月17日 1 点赞 0 评论 321 浏览 评分:0.0
判断一年的第几天 摘要:参考代码:#include<stdio.h>struct date { int year; int month; int day;};int main() { struct d…… 题解列表 2024年08月31日 1 点赞 0 评论 162 浏览 评分:9.9