小白看懂的C语言结构体 摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct riqi{ int year; int manth; int day;};int rennian(int n){ int…… 题解列表 2024年03月14日 0 点赞 0 评论 154 浏览 评分:9.9
结构体的使用 摘要:解题思路:注意事项:参考代码:#include <stdio.h>// 定义日期结构体struct Date { int year; int month; int day;};// 判断是否为闰年in…… 题解列表 2024年02月23日 0 点赞 0 评论 147 浏览 评分:9.9
for循环+结构体 摘要:解题思路:第一步:写结构体。第二步:判断是否是闰年一三五七八十腊是31天二月若为闰年则是29天,否则为28天其余为30天。注意事项:循环体不应该包含本月,否则会将本月全部日子加上去,应该循环结束后加上…… 题解列表 2024年01月31日 0 点赞 0 评论 137 浏览 评分:0.0
C++ 时间设计(涉及简单结构体使用) 摘要:```cpp #include using namespace std; //结构体 struct date{ int year; int month; int day; …… 题解列表 2024年01月31日 0 点赞 0 评论 161 浏览 评分:9.9
结构体之时间设计 摘要:解题思路:先根据年份判断平闰年调用函数实现天数判断最后返回天数即可注意事项:在定义类的时候不能定义为已有的函数名称,否则报错参考代码:#include<iostream>using namespace…… 题解列表 2024年01月27日 0 点赞 0 评论 141 浏览 评分:0.0
c代码记录之结构体时间设计 摘要: #include struct Time{ int year,month,day; }_time; int main(){ s…… 题解列表 2023年12月29日 0 点赞 0 评论 121 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:```python class Year: def __init__(self): pass def put(self,year,mon,day): …… 题解列表 2023年12月20日 0 点赞 0 评论 128 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;struct date{ int n,y,r;};int m[13]= {0…… 题解列表 2023年12月09日 0 点赞 0 评论 187 浏览 评分:0.0
结构体之时间设计(简单理解) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define Dat struct DateDat{ int year,month,day;};void transform(D…… 题解列表 2023年12月07日 0 点赞 0 评论 125 浏览 评分:9.9
结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct sjb { int year; int month; int day;} sj;int main(){ int sum =…… 题解列表 2023年12月05日 0 点赞 0 评论 329 浏览 评分:0.0