1049: [编程入门]结构体之时间设计——题解 ```c#includetypedefstruct{intyear,month,day;}YEAR;intmain(){YEARa;intday=0;scanf("%d%d%d",&a.year,&a.month,&a.day);if(a.year%4==0&&a.year%100!=0||a.yea 题解列表 2024年08月03日 0 点赞 0 评论 694 浏览 评分:9.9
判断一年的第几天 摘要:参考代码:#include<stdio.h>struct date { int year; int month; int day;};int main() { struct d…… 题解列表 2024年08月31日 1 点赞 0 评论 384 浏览 评分:9.9
编写题解 1049: [编程入门]结构体之时间设计(Java代码-简单易懂) 摘要:参考代码:import java.util.Scanner; //定义一个结构体 年 月 日 class Date{ int year; int month; int date; …… 题解列表 2024年09月20日 0 点赞 0 评论 544 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 如果你看不懂这里的其他题解 点击我 摘要:题目分析 本题主要是训练结构体的创建 声明用法代码#include<stdio.h> leapyear(int a)//判断是否为闰年 { int b; if((a%4==0…… 题解列表 2017年06月13日 19 点赞 8 评论 3029 浏览 评分:9.8
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct data{ int year; int month; int day;};int main(){ int i,sum; i…… 题解列表 2019年01月05日 1 点赞 2 评论 2108 浏览 评分:9.8
[编程入门]结构体之时间设计-题解(C语言代码)(简单明了,新手秒懂) ```c#includestructDate{intnian;//年intyue;//月intri;//日};intmain(){structDatea;intt[12]={31,28,31,30,31,30,31,31,30,31,30,31};//初始化每月份的天数inti, 题解列表 2019年08月20日 0 点赞 3 评论 1749 浏览 评分:9.8
[编程入门]结构体之时间设计-题解(Python代码) python 3行 strftime()函数接收以时间元组,并返回以可读字符串表示的当地时间,格式由参数format决定.%y两位数的年份表示(00-99)%Y四位数的年份表示(000-9999)%m月份(01-12)%d月内中的一天(0-31)%H24小时制小时数(0-23)%I12小时制小时数(01-12)%M分钟数 题解列表 2019年11月22日 0 点赞 4 评论 1834 浏览 评分:9.8
优质题解 崭新出厂,好摩易懂,可小刀 摘要:解题思路:1、定义结构体,并定义结构体变量 2、闰年:普通闰年:公历年份是4的倍数,且不是100的倍数的,为闰年(如2004年、2020年等就是闰年)。世纪闰年:公历年份是…… 题解列表 2023年06月10日 2 点赞 8 评论 2897 浏览 评分:9.8
C语言程序设计教程(第三版)课后习题11.1 (C++代码) 摘要:#include <iostream>using namespace std;int main (){ int year,month,day,result=0; cin>>year>>month>>d…… 题解列表 2017年06月28日 0 点赞 0 评论 2062 浏览 评分:9.5
switch函数打造,简单清晰的代码; #includestructggt{intyear;intmonth;intday;};intzdy(intyear,intmonth,intday);intmain(){structggtggt_1;scanf("%d%d%d",&ggt_1.year, 题解列表 2018年12月11日 9 点赞 0 评论 1785 浏览 评分:9.5