结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ struct Date { int year; int month; int day; }s; scanf…… 题解列表 2024年04月05日 0 点赞 0 评论 493 浏览 评分:0.0
结构体!!! 摘要:不知道还有没有哪里可以改进的#include<stdio.h> int main() { struct{ int year; int month; int …… 题解列表 2024年03月26日 0 点赞 0 评论 524 浏览 评分:0.0
小白看懂的C语言结构体 摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct riqi{ int year; int manth; int day;};int rennian(int n){ int…… 题解列表 2024年03月14日 0 点赞 0 评论 515 浏览 评分:9.9
结构体的使用 摘要:解题思路:注意事项:参考代码:#include <stdio.h>// 定义日期结构体struct Date { int year; int month; int day;};// 判断是否为闰年in…… 题解列表 2024年02月23日 0 点赞 0 评论 448 浏览 评分:9.9
for循环+结构体 解题思路:第一步:写结构体。第二步:判断是否是闰年一三五七八十腊是31天二月若为闰年则是29天,否则为28天其余为30天。注意事项:循环体不应该包含本月,否则会将本月全部日子加上去,应该循环结束后加上本月日期。参考代码:#include#include/*runt 题解列表 2024年01月31日 0 点赞 0 评论 566 浏览 评分:0.0
c代码记录之结构体时间设计 #includestructTime{intyear,month,day;}_time;intmain(){scanf("%d%d%d",&_time.year,&_time.month,&_time.day);inti,sum=0,days[12]={0, 题解列表 2023年12月29日 0 点赞 0 评论 483 浏览 评分:0.0
结构体之时间设计(简单理解) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define Dat struct DateDat{ int year,month,day;};void transform(D…… 题解列表 2023年12月07日 0 点赞 0 评论 451 浏览 评分:9.9
结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct sjb { int year; int month; int day;} sj;int main(){ int sum =…… 题解列表 2023年12月05日 0 点赞 0 评论 713 浏览 评分:0.0
初学者结构体没学用其他简单方法做的,谁都可以看懂 摘要:解题思路:注意事项:参考代码:#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 评论 543 浏览 评分:9.0
结构体之时间设计(小白易懂) 摘要:小白易懂参考代码:#include <stdio.h>int main(int argc, char *argv[]){ struct jsts { int year; int month; int …… 题解列表 2023年11月17日 0 点赞 0 评论 460 浏览 评分:9.9