C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:#include<stdio.h>struct Year{int year; int month; int day;};int main(){ struct Year a; int year,mont…… 题解列表 2017年08月30日 0 点赞 0 评论 852 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路:使用一个数组存放每个月份的天数,注意判断本年是否为闰年。注意事项:参考代码:#include<stdio.h>int main(){ int Y,M,D,sum=0,i,flag=0;…… 题解列表 2017年08月26日 0 点赞 0 评论 947 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:#include<stdio.h>struct shuru{ int year; int month; int day;};int main(){ struct shuru chu; int s…… 题解列表 2017年08月22日 0 点赞 0 评论 921 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路:定义一个结构体变量(年、月、日),以平年为准,通过数组给每个月初始化天数,条件判断是否为闰年,如果是闰年,那么2月份为29天,通过遍历,计算出是第几天。如果是平年,则2月份为28天,计算出是…… 题解列表 2017年07月25日 5 点赞 0 评论 2159 浏览 评分:8.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int month_day[2][13]={{0,31,29,31,30,31,30,31,31,30,31,30,31},{0,3…… 题解列表 2017年07月24日 0 点赞 0 评论 917 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int Year,Month,Day; scanf("%d%d%d",&Year,&Month,&D…… 题解列表 2017年07月23日 0 点赞 0 评论 909 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:有些时候,解决日期类要先看看是否要预处理。参考代码:#include <stdio.h>#include <stdlib.h>#define IS_LEAPYEAR(x) (x%4==0&&x%100…… 题解列表 2017年07月22日 1 点赞 0 评论 728 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void S(int Y,int M…… 题解列表 2017年07月08日 2 点赞 1 评论 798 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C++代码) 摘要:#include <iostream>using namespace std;int main (){ int year,month,day,result=0; cin>>year>>month>>d…… 题解列表 2017年06月28日 0 点赞 0 评论 1040 浏览 评分:9.5
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:#include<stdio.h>#include<string.h>struct INFO{ int year; int mon; int day; int num;};int main() { s…… 题解列表 2017年06月19日 0 点赞 0 评论 807 浏览 评分:0.0