C语言程序设计教程(第三版)课后习题11.1 (C++代码) 摘要:解题思路:打表来做,简单粗暴注意事项:题目有错,正确的闰年定义为能够被4整除且不能被一百整除的年份为闰年,但是本题目中闰年的定义为能够被4整除的一切数都被定义为了闰年。此时需要注意。参考代码:#inc…… 题解列表 2018年10月28日 0 点赞 0 评论 682 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.*; import java.math.*; public class Main { public static void ma…… 题解列表 2018年10月13日 1 点赞 0 评论 894 浏览 评分:6.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路:收藏的某位大佬的代码 方便以后查看 请大佬不要见怪哈注意事项:参考代码:#include<stdio.h>struct DAY{ int year; int month; …… 题解列表 2018年08月29日 0 点赞 0 评论 1046 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:先上代码,我们只需要20行#include<stdio.h> int main() { int day = 0, i; int a[12] = { 31,28,31,30,31,30,31…… 题解列表 2018年08月09日 0 点赞 0 评论 1195 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路:采用数组将每月的天数存入数组中,再判断输入年份是否为闰年。注意事项:参考代码:#include<stdio.h>int main(){ int y,m,d; int i,n=0; int a…… 题解列表 2018年07月25日 0 点赞 0 评论 585 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (Java代码) 摘要:import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2018年07月09日 0 点赞 0 评论 602 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:/* 时间:2018年7月9日13:24:38 目的:定义一个结构体变量(包括年、月、日)。计算该日在本年中是第几天,注意闰年问题。 */ #include <stdio.h> vo…… 题解列表 2018年07月09日 1 点赞 0 评论 581 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:参考代码:#include<stdio.h>struct Date{ int year; int month; int day; int leap; int count;…… 题解列表 2018年05月29日 0 点赞 0 评论 527 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int Judge(int year){ if((year%4==0&&year%100!=0)||year%400==0) …… 题解列表 2018年05月21日 0 点赞 0 评论 610 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题11.1 (C语言代码)我觉得没毛病,但是说答案错误 摘要:#include<stdio.h> #define year(a) ((a%4==0 && a%100!=0) || (a%400==0))?1:0 struct time { int…… 题解列表 2018年05月18日 0 点赞 1 评论 309 浏览 评分:0.0