优质题解 [编程入门]结构体之时间设计-题解(C语言代码) 摘要:#### 原题链接:[结构体之时间设计](https://www.dotcpp.com/oj/problem.php?id=1049 "结构体之时间设计") #### 解题思路: **1、…… 题解列表 2019年07月22日 0 点赞 30 评论 6919 浏览 评分:9.5
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:#include struct date { int year; int month; int day; }num; int Is_runnian(int x) { in…… 题解列表 2019年07月15日 0 点赞 0 评论 393 浏览 评分:0.0
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:```c #include #include #include leapyear(int a) //定义一个函数判断是否为闰年 { int b; if((a%4…… 题解列表 2019年06月13日 0 点赞 0 评论 410 浏览 评分:8.0
[编程入门]结构体之时间设计 (C语言代码)(不用数组和switch) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct time{ int year; int month; int day;};int m (){ struct time …… 题解列表 2019年05月21日 0 点赞 0 评论 347 浏览 评分: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 评论 583 浏览 评分: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 评论 821 浏览 评分:0.0
[编程入门]结构体之时间设计 (C语言代码) 摘要:解题思路:注意事项:参考代码: #include<stdio.h> int main() {struct Date {int year; int month; …… 题解列表 2019年05月03日 0 点赞 0 评论 401 浏览 评分:0.0
[编程入门]结构体之时间设计 (C语言代码) 摘要:解题思路:利用数组来保存月份的天数注意事项:闰年的定义:if(n%4==0 && n%100!=0 ||n%400==0)参考代码:#include<stdio.h>int main(){ int i…… 题解列表 2019年04月26日 0 点赞 0 评论 439 浏览 评分:0.0
[编程入门]结构体之时间设计 (C++代码) 摘要:解题思路: 大家都懂注意事项: 应该错误都会犯在月份这里 ,5月15日应该知识算前面四月,多理解这点就ok了参考代码:#include<bits/stdc++.h>using namesp…… 题解列表 2019年04月17日 0 点赞 0 评论 527 浏览 评分:0.0
计算某日在那年中是第几天(注意闰年) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct YMD{ int year; int month; int day;};int main(){ s…… 题解列表 2019年04月09日 0 点赞 0 评论 473 浏览 评分:0.0