[编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ struct years { ; int year; i…… 题解列表 2022年09月19日 0 点赞 0 评论 251 浏览 评分:8.7
[编程入门]结构体之时间设计-题解(C语言代码)这个代码真的很棒!勿喷!!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int a[12]={31,28,31,30,31,30,31,31,30,31,30,31}; int b…… 题解列表 2020年11月23日 0 点赞 3 评论 482 浏览 评分:8.9
C语言程序设计教程(第三版)课后习题11.1 (C语言描述 超级简单的方法,适合于入门) 摘要:解题思路:主要用到的是数组,也可以用switch语句,会显得更有逼格哦判断闰年的条件四年一闰,百年不闰,四百年再闰润年2月有29天,平年2月有28天如果是闰年,在天数上加1就是了建立一个数组,分别是 …… 题解列表 2018年11月16日 1 点赞 0 评论 1203 浏览 评分:9.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路: 注意事项: 参考代码: #include struct day { int year; int month; int day…… 题解列表 2019年01月03日 4 点赞 3 评论 643 浏览 评分:9.0
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:没有用结构体,没有声明函数 #include #include int main() { int y,m,d,i,all=0,t=0; scanf("%d%d%d",…… 题解列表 2019年08月15日 0 点赞 1 评论 508 浏览 评分:9.0
[编程入门]结构体之时间设计-题解(Python代码) 摘要: 分闰年和平年两种情况,我采用字典来存放每个月的天数。 首先输入年月日 用sum来存取天数 闰年的时候二月29天,因此二月的字典中2对应值为29 进入if语句后,先遍历求m月份之前的天…… 题解列表 2019年11月26日 0 点赞 2 评论 615 浏览 评分:9.0
[编程入门]结构体之时间设计-题解(C语言代码) 摘要: ```c #include int days(struct datetime); struct datetime //结…… 题解列表 2020年03月07日 0 点赞 0 评论 435 浏览 评分:9.0
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:参考代码:#include <stdio.h> typedef struct { int year; int month; int day; }Time; i…… 题解列表 2020年07月24日 0 点赞 0 评论 816 浏览 评分:9.0
优质题解 [编程入门]结构体之时间设计 摘要:解题思路:首先定义一个时间结构体Date,其成员包括year,month,day分别表示年,月,日。然后在main函数中定义结构体变量,再定义一个sum用来保存输入日期是该年的第几天,为了后续方便计算…… 题解列表 2022年07月07日 0 点赞 1 评论 1564 浏览 评分:9.0
1049 结构体之时间设计 真的是C并且真的用了结构体 摘要:#思路 设计一个结构体date,内含int类型的变量三个:`year,mouth,day`。 定义一个结构体变量date1,**为其中的三个变量(`date1.year,date1.mouth,d…… 题解列表 2022年10月25日 0 点赞 0 评论 168 浏览 评分:9.0