666 必看 进入惊喜 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y,n,z,j; scanf("%d%d%d",&x,&y,&n); { if(x%4==0) …… 题解列表 2021年09月11日 0 点赞 0 评论 319 浏览 评分:9.9
[编程入门]结构体之时间设计 2种解法 摘要:未运用结构体#include struct Date{ int nian; int yue; int ri; }; int main() { int a=0,m,n,i,j; s…… 题解列表 2021年10月14日 0 点赞 0 评论 235 浏览 评分:9.9
结构体之时间设计 摘要:解题思路:先定义时间结构体:struct time{ int year; int month; int day; }; 定义主函数,和结构体联系起来: int ma…… 题解列表 2021年10月22日 0 点赞 0 评论 214 浏览 评分:9.9
1049: [编程入门]结构体之时间设计--java自定义类 摘要:解题思路:定义一个类分别为年、月、日。输入一行字符串,定义一个字符串数组用空格为划分符将字符串划分定义一个整形数组将字符串数组中三个元素转为int类型年 = 字符串数组【0】月 = 字符串数组【1】日…… 题解列表 2021年12月11日 0 点赞 0 评论 417 浏览 评分:9.9
编写题解 1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct Date{ int year; int month; int day;}time;//设置一个结构体int main(){…… 题解列表 2021年12月22日 0 点赞 0 评论 268 浏览 评分:9.9
创建两个数组即可 摘要:解题思路:注意事项:参考代码:#include<stdio.h> typedef struct input_time{ int year; int month; int…… 题解列表 2022年01月11日 0 点赞 0 评论 191 浏览 评分:9.9
结构体之时间设计 ————题解解析 摘要:解题思路:看一下闰年和平年的区分。注意事项:不要想的很复杂,只是将过完的月份加起来然后再去加上正在过的月份的天数。参考代码:#include <iostream>using namespace std…… 题解列表 2022年01月11日 0 点赞 0 评论 327 浏览 评分:9.9
[编程入门]结构体之时间设计(C语言入门级,易懂代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>typedef struct fun{ int year; int month; int day;} sum;in…… 题解列表 2022年02月07日 0 点赞 0 评论 328 浏览 评分:9.9
已过多少天 摘要:解题思路:switch中的break注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef struct{ int year,month,day…… 题解列表 2022年02月20日 0 点赞 0 评论 282 浏览 评分:9.9
计算这一日是这年的第几天 摘要://普通闰年:公历年份是4的倍数的,一般是闰年。 //世纪闰年:公历年份是整百数的,必须是400的倍数才是闰年 #include using namespace std; int main(…… 题解列表 2022年03月02日 0 点赞 0 评论 257 浏览 评分:9.9