[编程入门]结构体之时间设计-题解(C语言代码)(简单明了,新手秒懂) 摘要:```c #include struct Date { int nian;//年 int yue;//月 int ri;//日 }; int main() { s…… 题解列表 2019年08月20日 0 点赞 3 评论 1426 浏览 评分:9.8
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:````c /*定义一个结构体变量(包括年、月、日)。计算该日在本年中是第几天,注意闰年问题。 输入 年月日 输出 当年第几天 样例输入 2000 12 31 样例输出 366 …… 题解列表 2019年08月16日 0 点赞 5 评论 1874 浏览 评分:9.9
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:没有用结构体,没有声明函数 #include #include int main() { int y,m,d,i,all=0,t=0; scanf("%d%d%d",…… 题解列表 2019年08月15日 0 点赞 1 评论 517 浏览 评分:9.0
[编程入门]结构体之时间设计-题解(Java代码) 摘要:本题需要考虑闰年的问题,闰年二月有29天,平年二月有28天, import java.util.Scanner; public class Main{ public static void…… 题解列表 2019年08月12日 0 点赞 0 评论 829 浏览 评分:7.3
优质题解 [编程入门]结构体之时间设计-题解(C语言代码) 摘要:#### 原题链接:[结构体之时间设计](https://www.dotcpp.com/oj/problem.php?id=1049 "结构体之时间设计") #### 解题思路: **1、…… 题解列表 2019年07月22日 1 点赞 30 评论 7197 浏览 评分:9.5
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:#include struct date { int year; int month; int day; }num; int Is_runnian(int x) { in…… 题解列表 2019年07月15日 0 点赞 0 评论 497 浏览 评分:0.0
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:```c #include #include #include leapyear(int a) //定义一个函数判断是否为闰年 { int b; if((a%4…… 题解列表 2019年06月13日 0 点赞 0 评论 527 浏览 评分:8.0
[编程入门]结构体之时间设计 (C语言代码)(不用数组和switch) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct time{ int year; int month; int day;};int m (){ struct time …… 题解列表 2019年05月21日 0 点赞 0 评论 408 浏览 评分:0.0
[编程入门]结构体之时间设计 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct data{int year;int month;int day;}s;//定义结构体int main(){int t=0;…… 题解列表 2019年05月05日 0 点赞 0 评论 797 浏览 评分:0.0
[编程入门]结构体之时间设计 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct data{int year;int month;int day;}s;int main(){int t=0; scanf(…… 题解列表 2019年05月05日 0 点赞 0 评论 972 浏览 评分:0.0