题解 1049: [编程入门]结构体之时间设计

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

小白看懂的C语言结构体

摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct riqi{ int year; int manth; int day;};int rennian(int n){ int……

简单易懂,结构体之时间设计

摘要:解题思路:平年2月28天,闰年2月29天,平年闰年分开考虑注意事项: 无参考代码:y, m, d = map(int, input().split()) day_num = d year1 = [……

考察经典Switch语句的用法

摘要:解题思路:考察经典Switch语句的用法注意事项:注意switch语句是先找到符合项才继续执行的,时间久了,有点忘了参考代码:#include<iostream> using namespace s……

判断一年的第几天

摘要:参考代码:#include<stdio.h>struct date {    int year;    int month;    int day;};int main() {    struct d……