C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:#include<stdio.h> #define LEAP_YEAR(y) (y%4==0&&y%100!=0||y%400==0)?1:0 typedef struct CCalendar …… 题解列表 2018年12月14日 1 点赞 0 评论 404 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int sum,i; &n 题解列表 2019年01月14日 0 点赞 0 评论 587 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:#include <stdio.h>int check(int year){ if((year%4==0)&&(year%100!=0)|(year%400==0)) return 1; …… 题解列表 2019年01月22日 0 点赞 0 评论 446 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路: 思考半天没想出来,结果用一个数组解决了,感觉自己的代码还可以再 题解列表 2019年02月14日 0 点赞 0 评论 440 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码)简单易懂的方法哦 摘要:解题思路:定义一个结构体模板,先判断是闰年还是平年,然后再分别赋值注意事项:参考代码:#include<stdio.h>struct Date { int month; int days;};int …… 题解列表 2019年02月16日 0 点赞 0 评论 530 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct date{ int year; int month; int day;}aa;void main(){ int a[12]…… 题解列表 2019年02月18日 0 点赞 0 评论 355 浏览 评分:0.0
计算某日在那年中是第几天(注意闰年) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct YMD{ int year; int month; int day;};int main(){ s…… 题解列表 2019年04月09日 0 点赞 0 评论 475 浏览 评分:0.0
[编程入门]结构体之时间设计 (C++代码) 摘要:解题思路: 大家都懂注意事项: 应该错误都会犯在月份这里 ,5月15日应该知识算前面四月,多理解这点就ok了参考代码:#include<bits/stdc++.h>using namesp…… 题解列表 2019年04月17日 0 点赞 0 评论 528 浏览 评分: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 评论 441 浏览 评分:0.0
[编程入门]结构体之时间设计 (C语言代码) 摘要:解题思路:注意事项:参考代码: #include<stdio.h> int main() {struct Date {int year; int month; …… 题解列表 2019年05月03日 0 点赞 0 评论 403 浏览 评分:0.0