简单易懂,结构体之时间设计 摘要:解题思路:平年2月28天,闰年2月29天,平年闰年分开考虑注意事项: 无参考代码:y, m, d = map(int, input().split()) day_num = d year1 = […… 题解列表 2024年05月04日 1 点赞 0 评论 124 浏览 评分:9.9
编写题解 1049: [编程入门]结构体之时间设计 摘要:```c #include struct Data{ int year; int month; int day; }data; int main() { …… 题解列表 2024年05月29日 0 点赞 0 评论 107 浏览 评分:9.9
考察经典Switch语句的用法 摘要:解题思路:考察经典Switch语句的用法注意事项:注意switch语句是先找到符合项才继续执行的,时间久了,有点忘了参考代码:#include<iostream> using namespace s…… 题解列表 2024年06月13日 1 点赞 0 评论 245 浏览 评分:9.9
1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;struct tim{ ll n;…… 题解列表 2024年07月16日 0 点赞 0 评论 159 浏览 评分:9.9
1049: [编程入门]结构体之时间设计——题解 摘要:```c #include typedef struct{ int year,month,day; }YEAR; int main(){ YEAR a; int…… 题解列表 2024年08月03日 0 点赞 0 评论 268 浏览 评分:9.9
判断一年的第几天 摘要:参考代码:#include<stdio.h>struct date { int year; int month; int day;};int main() { struct d…… 题解列表 2024年08月31日 1 点赞 0 评论 103 浏览 评分:9.9
编写题解 1049: [编程入门]结构体之时间设计(Java代码-简单易懂) 摘要:参考代码:import java.util.Scanner; //定义一个结构体 年 月 日 class Date{ int year; int month; int date; …… 题解列表 2024年09月20日 0 点赞 0 评论 216 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 如果你看不懂这里的其他题解 点击我 摘要:题目分析 本题主要是训练结构体的创建 声明用法代码#include<stdio.h> leapyear(int a)//判断是否为闰年 { int b; if((a%4==0…… 题解列表 2017年06月13日 19 点赞 8 评论 2225 浏览 评分: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 评论 1241 浏览 评分:9.8
[编程入门]结构体之时间设计-题解(C语言代码)(简单明了,新手秒懂) 摘要:```c #include struct Date { int nian;//年 int yue;//月 int ri;//日 }; int main() { s…… 题解列表 2019年08月20日 0 点赞 3 评论 1327 浏览 评分:9.8