初学者结构体没学用其他简单方法做的,谁都可以看懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[12] = { 31,28,31,30,31,30,31,31,30,31,30,31 }; int…… 题解列表 2023年11月19日 0 点赞 0 评论 161 浏览 评分:9.0
良心推荐——>题解1049:C语言程序设计教程(第三版)课后习题11.1 (C语言描述——简单明了,时间复杂度低) 摘要:解题思路:1.首先按照题目要求定义一个结构体,如代码所示,Days为结构体类型,在main函数中定义的dd就是结构体变量名,它包含三个属性int year,int mon和int day;2.因为每个…… 题解列表 2017年10月24日 2 点赞 0 评论 1562 浏览 评分:9.1
优质题解 小白也能看懂的C语言结构体 (C语言爱好者) 摘要:解题思路:第一步:定义结构体为了书写方便,我将结构体重名为DATE。第二步:用数组保存平年的12个月份的天数。什么是平年?是否有人不知道,平年是和闰年相对的,平年的2月是28天,闰年的2月是29天,所…… 题解列表 2019年01月04日 5 点赞 2 评论 2202 浏览 评分:9.2
[编程入门]结构体之时间设计-题解(C语言代码)利用函数返回值,简单易懂 摘要: #include //创建结构体类型time struct time { int year; int month; int day…… 题解列表 2020年02月02日 0 点赞 3 评论 854 浏览 评分:9.3
[编程入门]结构体之时间设计-题解(C++代码)简单易懂哦! 摘要: #include struct t { int year; int mouth; int date; }; int f(struct t a); int main() { …… 题解列表 2019年10月24日 0 点赞 3 评论 1087 浏览 评分:9.4
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:```c //中大yinwq:我爱唐山ZHENGXF #include #include int main() { struct date …… 题解列表 2019年12月22日 0 点赞 2 评论 1356 浏览 评分:9.4
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 评论 1156 浏览 评分:9.5
switch函数打造,简单清晰的代码; 摘要:#include struct ggt { int year; int month; int day; }; int zdy(int year, int month, int day); …… 题解列表 2018年12月11日 9 点赞 0 评论 1078 浏览 评分:9.5
优质题解 [编程入门]结构体之时间设计-题解(C语言代码) 摘要:#### 原题链接:[结构体之时间设计](https://www.dotcpp.com/oj/problem.php?id=1049 "结构体之时间设计") #### 解题思路: **1、…… 题解列表 2019年07月22日 0 点赞 30 评论 7081 浏览 评分:9.5
1049题结构体之时间设计-题解(C语言代码)简单运用结构体且思路注解清晰代码简单 摘要:思路:将月份事先定义在数组中,计算天数比较方便。 注意:见注解。 ```c #include void JudgeDay(int a,int b,int c); struct time …… 题解列表 2020年03月27日 0 点赞 6 评论 1065 浏览 评分:9.5