[编程入门]结构体之时间设计-题解(C语言代码) 摘要:个人做法 #include #include struct TIME { int year; int month; …… 题解列表 2020年01月13日 0 点赞 0 评论 911 浏览 评分:9.9
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:```c #include struct week{ int year; int month; int day; }; int main() { st…… 题解列表 2020年01月11日 0 点赞 0 评论 427 浏览 评分:0.0
[编程入门]结构体之时间设计-题解(C++代码) 摘要:#include using namespace std; int main() { int y, m,dd, d[100] = { 0,31,29,31,30,31,30,31,31,30…… 题解列表 2019年12月26日 0 点赞 0 评论 438 浏览 评分:0.0
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:```c //中大yinwq:我爱唐山ZHENGXF #include #include int main() { struct date …… 题解列表 2019年12月22日 0 点赞 2 评论 1267 浏览 评分:9.4
[编程入门]结构体之时间设计-题解(C语言代码) 用数组做的,没学结构体,理解简单。 摘要:#include int main() { int a,b,c,s; scanf("%d%d%d",&a,&b,&c);//输入年月日 if(a%4==0)//如果是闰年,由月…… 题解列表 2019年12月19日 0 点赞 0 评论 807 浏览 评分:0.0
[编程入门]结构体之时间设计-题解(Java代码) 摘要: import java.util.Scanner; public class Dsss { public static void main(String[] args) { …… 题解列表 2019年12月18日 0 点赞 0 评论 502 浏览 评分:0.0
[编程入门]结构体之时间设计-题解(C语言代码) 摘要: #include struct time{ int year; int month; int day; }; int main…… 题解列表 2019年12月08日 0 点赞 0 评论 1248 浏览 评分:9.9
[编程入门]结构体之时间设计-题解(C语言代码) 摘要:#include int day_of_year(int year, int month, int day); int main(void) { int year,month,day; …… 题解列表 2019年12月07日 0 点赞 0 评论 485 浏览 评分:0.0
[编程入门]结构体之时间设计-题解(Python代码) 摘要: 分闰年和平年两种情况,我采用字典来存放每个月的天数。 首先输入年月日 用sum来存取天数 闰年的时候二月29天,因此二月的字典中2对应值为29 进入if语句后,先遍历求m月份之前的天…… 题解列表 2019年11月26日 0 点赞 2 评论 578 浏览 评分:9.0
[编程入门]结构体之时间设计-题解(Python代码) python 3行 摘要:strftime() 函数接收以时间元组,并返回以可读字符串表示的当地时间,格式由参数format决定. %y 两位数的年份表示(00-99) %Y 四位数的年份表示(000-9999) %m …… 题解列表 2019年11月22日 0 点赞 4 评论 1365 浏览 评分:9.8