编写题解 1049: [编程入门]结构体之时间设计 摘要:```c #include struct Data{ int year; int month; int day; }data; int main() { …… 题解列表 2024年05月29日 0 点赞 0 评论 106 浏览 评分:9.9
1049时间设计(结构体实现) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>typedef struct shijian{ int nian; int yue; int ru;}shijian;int main(…… 题解列表 2024年05月23日 0 点赞 0 评论 98 浏览 评分:0.0
不用结构体我照样写!!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int number = 0;int i = 0;int year = 0;int month = 0;int day = 0;//这…… 题解列表 2024年05月12日 0 点赞 0 评论 109 浏览 评分:0.0
简单易懂,结构体之时间设计 摘要:解题思路:平年2月28天,闰年2月29天,平年闰年分开考虑注意事项: 无参考代码:y, m, d = map(int, input().split()) day_num = d year1 = […… 题解列表 2024年05月04日 1 点赞 0 评论 124 浏览 评分:9.9
结构体之时间设计(利用Java自带的时间类) 摘要:解题思路:注意事项:参考代码:import java.text.ParseException; import java.text.SimpleDateFormat; import java.uti…… 题解列表 2024年04月26日 0 点赞 0 评论 191 浏览 评分:9.9
结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ struct Date { int year; int month; int day; }s; scanf…… 题解列表 2024年04月05日 0 点赞 0 评论 145 浏览 评分:0.0
简单易理解,利用循环解决此题 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split())d=0da=(1,3,5,7,8,10,12)xiao=(4,6,9,11)for i in range(1,…… 题解列表 2024年03月28日 0 点赞 0 评论 173 浏览 评分:9.9
结构体!!! 摘要:不知道还有没有哪里可以改进的#include<stdio.h> int main() { struct{ int year; int month; int …… 题解列表 2024年03月26日 0 点赞 0 评论 130 浏览 评分:0.0
结构体之时间设计 摘要:解题思路:先判断是闰年还是平年,闰年二月29天,平年二月28天,然后再按照月份将天数相加。注意事项:for循环的时候并不是直接月数,而是月数-1,加上输入的几号参考代码:import java.uti…… 题解列表 2024年03月17日 0 点赞 0 评论 153 浏览 评分:0.0
小白看懂的C语言结构体 摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct riqi{ int year; int manth; int day;};int rennian(int n){ int…… 题解列表 2024年03月14日 0 点赞 0 评论 135 浏览 评分:9.9