[编程入门]结构体之时间设计 (Python描述) 摘要:```python x, y, z = map(int, input().split()) sn = 0 for i in range(1,y): sn += 30 if i…… 题解列表 2020年04月10日 0 点赞 0 评论 708 浏览 评分:7.0
[编程入门]结构体之时间设计-题解(Java代码) 摘要:本题需要考虑闰年的问题,闰年二月有29天,平年二月有28天, import java.util.Scanner; public class Main{ public static void…… 题解列表 2019年08月12日 0 点赞 0 评论 829 浏览 评分:7.3
[编程入门]结构体之时间设计-题解(C++代码) 摘要:```cpp #include using namespace std; struct date { int year; int month; int day;…… 题解列表 2020年04月28日 0 点赞 0 评论 627 浏览 评分:7.3
c语言结构体之时间设计-题解(隔壁老爷爷都说好用) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int a[12]={31,28,31,30,31,30,31,31,30,31,30,31…… 题解列表 2020年11月28日 0 点赞 1 评论 549 浏览 评分:7.3
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:```c #include struct stu { int year; int month; int day; }a; int main(void) { int …… 题解列表 2021年02月01日 0 点赞 0 评论 399 浏览 评分:7.3
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路:定义一个结构体变量(年、月、日),以平年为准,通过数组给每个月初始化天数,条件判断是否为闰年,如果是闰年,那么2月份为29天,通过遍历,计算出是第几天。如果是平年,则2月份为28天,计算出是…… 题解列表 2017年07月25日 5 点赞 0 评论 2350 浏览 评分:8.0
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:```c #include #include #include leapyear(int a) //定义一个函数判断是否为闰年 { int b; if((a%4…… 题解列表 2019年06月13日 0 点赞 0 评论 527 浏览 评分:8.0
(C语言代码)菜鸟第一次写,大佬多多关照 摘要:#include int num=0; int fun1(int t) { int month[13]={0,31,29,31,30,31,30,31,31,30,31,30,31}; …… 题解列表 2020年02月25日 0 点赞 0 评论 406 浏览 评分:8.0
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:```c #include struct{ int year; int moonth; int day; }day; int main(){ int sum=0;…… 题解列表 2020年04月17日 0 点赞 0 评论 407 浏览 评分:8.0
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:# 模块化的思想 代码很容易,但要养成一个习惯,形成一种方法不容易,希望我的这种模块化的思想能帮助大家。 ```c #include //定义一个结构体变量(包括年、月、日)。计算该日在本…… 题解列表 2020年05月06日 0 点赞 0 评论 864 浏览 评分:8.0