结构体时间设计C语言 摘要:#include<stdio.h>#include<stdlib.h>#include<string.h>struct date{int y;int m;int d;};int isrun(int y…… 题解列表 2022年01月17日 0 点赞 0 评论 462 浏览 评分:0.0
通过c语言的指针来访问和运算 摘要:#include<stdio.h> #include<string.h> typedef struct{ int year; int month; int day; }DAY,*SD…… 题解列表 2022年01月13日 0 点赞 0 评论 455 浏览 评分:0.0
创建两个数组即可 摘要:解题思路:注意事项:参考代码:#include<stdio.h> typedef struct input_time{ int year; int month; int…… 题解列表 2022年01月11日 0 点赞 0 评论 551 浏览 评分:9.9
编写题解 1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct Date{ int year; int month; int day;}time;//设置一个结构体int main(){…… 题解列表 2021年12月22日 0 点赞 0 评论 559 浏览 评分:9.9
时间设计-C语言 摘要:解题思路: 首先创建一个含有十二个元素的数组,方便后面计算天数;注意事项: 闰年的二月为29天参考代码:#include<stdio.h>int main(){ int year,month,d…… 题解列表 2021年12月21日 0 点赞 0 评论 640 浏览 评分:0.0
结构体之时间设计-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun(int yil,int ay,int kun){ int i,t=0; for(i=1;i<ay;i++) { if…… 题解列表 2021年11月30日 0 点赞 0 评论 854 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a[12]={31,28,31,30,31,30,31,31,30,31,30,31}; …… 题解列表 2021年11月11日 0 点赞 0 评论 601 浏览 评分:0.0
1049注意真积分 摘要:解题思路:注意事项:i要从零开始参考代码:#include <stdio.h>int main(){ int a[12]={31,28,31,30,31,30,31,31,30,31,30,31}; …… 题解列表 2021年11月09日 0 点赞 0 评论 511 浏览 评分:0.0
结构体之时间设计 摘要:解题思路:先定义时间结构体:struct time{ int year; int month; int day; }; 定义主函数,和结构体联系起来: int ma…… 题解列表 2021年10月22日 0 点赞 0 评论 554 浏览 评分:9.9
[编程入门]结构体之时间设计 2种解法 摘要:未运用结构体#include struct Date{ int nian; int yue; int ri; }; int main() { int a=0,m,n,i,j; s…… 题解列表 2021年10月14日 0 点赞 0 评论 639 浏览 评分:9.9