[编程入门]结构体之时间设计-题解(C语言代码) 摘要:```c #include #include #include leapyear(int a) //定义一个函数判断是否为闰年 { int b; if((a%4…… 题解列表 2019年06月13日 0 点赞 0 评论 992 浏览 评分:8.0
[编程入门]结构体之时间设计 (C语言代码)(不用数组和switch) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct time{ int year; int month; int day;};int m (){ struct time …… 题解列表 2019年05月21日 0 点赞 0 评论 662 浏览 评分:0.0
[编程入门]结构体之时间设计 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct data{int year;int month;int day;}s;//定义结构体int main(){int t=0;…… 题解列表 2019年05月05日 0 点赞 0 评论 1327 浏览 评分:0.0
[编程入门]结构体之时间设计 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct data{int year;int month;int day;}s;int main(){int t=0; scanf(…… 题解列表 2019年05月05日 0 点赞 0 评论 1418 浏览 评分:0.0
[编程入门]结构体之时间设计 (C语言代码) 摘要:解题思路:注意事项:参考代码: #include<stdio.h> int main() {struct Date {int year; int month; …… 题解列表 2019年05月03日 0 点赞 0 评论 986 浏览 评分:0.0
[编程入门]结构体之时间设计 (C语言代码) 摘要:解题思路:利用数组来保存月份的天数注意事项:闰年的定义:if(n%4==0 && n%100!=0 ||n%400==0)参考代码:#include<stdio.h>int main(){ int i…… 题解列表 2019年04月26日 0 点赞 0 评论 931 浏览 评分:0.0
[编程入门]结构体之时间设计 (C++代码) 摘要:解题思路: 大家都懂注意事项: 应该错误都会犯在月份这里 ,5月15日应该知识算前面四月,多理解这点就ok了参考代码:#include<bits/stdc++.h>using namesp…… 题解列表 2019年04月17日 0 点赞 0 评论 855 浏览 评分:0.0
计算某日在那年中是第几天(注意闰年) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct YMD{ int year; int month; int day;};int main(){ s…… 题解列表 2019年04月09日 0 点赞 0 评论 767 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C++代码) 摘要:#include <iostream>using namespace std;struct date{ int year; int month; int day;};bool …… 题解列表 2019年03月25日 0 点赞 1 评论 1978 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct date{ int year; int month; int day;}aa;void main(){ int a[12]…… 题解列表 2019年02月18日 0 点赞 0 评论 825 浏览 评分:0.0