[编程入门]结构体之时间设计-题解(C语言代码) 摘要:解题思路:定义结构体,定义平年与闰年的两套数组,通过指针若闰年指针指向闰年数组否者指向平年数组,然后计算就可以了注意事项:参考代码:#include <stdio.h>typedef struct{ …… 题解列表 2021年01月14日 0 点赞 0 评论 796 浏览 评分:0.0
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>typedef struct{ int year,month,date;}time;int sum(int year, int m…… 题解列表 2021年01月12日 0 点赞 0 评论 1069 浏览 评分:9.9
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:解题思路:本来想用enum的但是好象不行啊,枚举是应该是相应递增为1的 注意事项:月份的递增应该想到数组 参考代码: #include<stdio.h> struct Day { int …… 题解列表 2020年12月23日 0 点赞 0 评论 1140 浏览 评分:0.0
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int x=0; struct date { …… 题解列表 2020年12月20日 0 点赞 0 评论 952 浏览 评分:0.0
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int f(int y,int m,int d) { int a[13]={0,31,28,31,30,31,30,3…… 题解列表 2020年12月10日 0 点赞 0 评论 711 浏览 评分:0.0
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:解题思路:注意事项:注意闰年的判断条件,参考代码:#include <stdio.h>int main(){ int a[12]={31,28,31,30,31,30,31,31,30,31,3…… 题解列表 2020年12月04日 0 点赞 0 评论 1007 浏览 评分:0.0
c语言结构体之时间设计-题解(隔壁老爷爷都说好用) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int a[12]={31,28,31,30,31,30,31,31,30,31,30,31…… 题解列表 2020年11月28日 0 点赞 1 评论 1084 浏览 评分:7.3
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct numberofday{ int year; int month; int day;} d;const int r=30;…… 题解列表 2020年11月28日 0 点赞 0 评论 1470 浏览 评分:0.0
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> typedef struct { int year; int month; int day; }…… 题解列表 2020年11月24日 0 点赞 0 评论 846 浏览 评分:0.0
[编程入门]结构体之时间设计-题解(C语言代码)这个代码真的很棒!勿喷!!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int a[12]={31,28,31,30,31,30,31,31,30,31,30,31}; int b…… 题解列表 2020年11月23日 0 点赞 3 评论 810 浏览 评分:8.9