[每天努力一点]结构体之时间设计-题解(C代码) 摘要:1.先判断如何区分平年和闰年 闰年的判断 能被**400**整除 或者 被**4**整除且不能被**100**整除 2.从1开始输入月份到目标月份,这里判断一下i的值,如果不等于所输入的月份…… 题解列表 2020年05月10日 0 点赞 1 评论 738 浏览 评分:8.0
[编程入门]结构体之时间设计-题解(c语言代码)附解 思路简单 摘要:#include<stdio.h> struct days{//定义结构体 int year; int month; int day; }p1; int main(){ sca…… 题解列表 2024年11月24日 4 点赞 0 评论 706 浏览 评分:8.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 评论 631 浏览 评分: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 评论 554 浏览 评分:7.3
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:```c #include struct stu { int year; int month; int day; }a; int main(void) { int …… 题解列表 2021年02月01日 0 点赞 0 评论 400 浏览 评分:7.3
[编程入门]结构体之时间设计 (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 评论 709 浏览 评分:7.0
优质题解 Manchester- C语言程序设计教程(第三版)课后习题11.1 摘要:解题思路:用一个长度为12的数组,记录每个月的天数,除了2月先不记录;输入日期,判断闰年2月赋值29,平年28;计算是第几天,输出;参考代码:#include <stdio.h> #include …… 题解列表 2017年12月20日 24 点赞 25 评论 8764 浏览 评分:6.5
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路以及注意事项:今天给大家分享的这题不难,但很搞笑哈。好久没写过怎么恶心的代码了,今天给大家开开眼哈。实例代码:#include"stdio.h" struct year { in…… 题解列表 2017年06月17日 0 点赞 1 评论 996 浏览 评分:6.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路:注意事项:参考代码://jgt #include<stdio.h> struct DAY { int year; int month; int day; …… 题解列表 2017年10月30日 1 点赞 0 评论 751 浏览 评分:6.0