C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路:利用结构体和数组思路清晰,由于本人能力有限,所以代码较长,但是逻辑非常清楚注意事项:参考代码:#include<stdio.h>int main(){struct whichday{int …… 题解列表 2017年10月12日 0 点赞 0 评论 845 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路:先计算该月第一天是该年第几天,然后再根据该日为该月第几天,通过相加把最后结果计算出来。注意事项:注意闰年的计算参考代码:#include"stdio.h"typedef struct …… 题解列表 2017年09月08日 1 点赞 0 评论 905 浏览 评分:0.0
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 评论 891 浏览 评分: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 评论 1044 浏览 评分: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 评论 1031 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路:定义一个结构体变量(年、月、日),以平年为准,通过数组给每个月初始化天数,条件判断是否为闰年,如果是闰年,那么2月份为29天,通过遍历,计算出是第几天。如果是平年,则2月份为28天,计算出是…… 题解列表 2017年07月25日 5 点赞 0 评论 2308 浏览 评分: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 评论 985 浏览 评分: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 评论 994 浏览 评分: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 评论 777 浏览 评分: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 评论 1074 浏览 评分:0.0