[编程入门]结构体之时间设计-题解(c语言代码)附解 思路简单 摘要:#include<stdio.h> struct days{//定义结构体 int year; int month; int day; }p1; int main(){ sca…… 题解列表 2024年11月24日 4 点赞 0 评论 561 浏览 评分:10.0
自己做的新手,欢迎指导 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct date{ int year; int month; int day;};int mod(int y,i…… 题解列表 2024年12月20日 8 点赞 0 评论 408 浏览 评分:10.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int month_day[2][13]={{0,31,29,31,30,31,30,31,31,30,31,30,31},{0,3…… 题解列表 2017年07月24日 0 点赞 0 评论 917 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:#include<stdio.h>struct Year{int year; int month; int day;};int main(){ struct Year a; int year,mont…… 题解列表 2017年08月30日 0 点赞 0 评论 852 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:先上代码,我们只需要20行#include<stdio.h> int main() { int day = 0, i; int a[12] = { 31,28,31,30,31,30,31…… 题解列表 2018年08月09日 0 点赞 0 评论 1002 浏览 评分:9.9
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:````c /*定义一个结构体变量(包括年、月、日)。计算该日在本年中是第几天,注意闰年问题。 输入 年月日 输出 当年第几天 样例输入 2000 12 31 样例输出 366 …… 题解列表 2019年08月16日 0 点赞 5 评论 1826 浏览 评分:9.9
[编程入门]结构体之时间设计-题解(C语言代码) 摘要: #include struct time{ int year; int month; int day; }; int main…… 题解列表 2019年12月08日 0 点赞 0 评论 1243 浏览 评分:9.9
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:个人做法 #include #include struct TIME { int year; int month; …… 题解列表 2020年01月13日 0 点赞 0 评论 906 浏览 评分:9.9
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:```c #pragma warning(disable : 4996) #include int dispose(int year) { if (year % 4 == 0 && …… 题解列表 2020年01月31日 0 点赞 0 评论 887 浏览 评分:9.9
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:参考代码:#include<stdio.h> #include<stdlib.h> struct date { int day; int month; int year; } tim…… 题解列表 2020年08月07日 0 点赞 3 评论 1590 浏览 评分:9.9