本月有几天
来源:互联网 发布:2017淘宝微淘抢红包 编辑:程序博客网 时间:2024/05/02 00:44
/*Copyright (c) 烟台大学计算机与控制工程学院Author:刘慧艳Created:2014.07.17Edition:V1.0Describe:*/#include <iostream>using namespace std;int main(){ int year,month ,days; cout<<"请输入年月:"; cin>>year>>month; switch(month) { case 1: case 3: case 5: case 7: case 8: case 10: case 12:days=31;break; case 4: case 6: case 9: case 11:days=30;break; case 2:if(year%4==0&&year%100!=0) days=29; else days=28; break; } cout<<year<<"年"<<month<<"月有"<<days<<"天"<<endl; return 0;}
0 0
- 本月有几天?
- 本月有几天
- 本月有几天
- 本月有几天?
- 计算本月有几天
- 本月有几天
- 本月有几天
- 本月有几天,亲
- 本月有几天
- 本月有几天
- 求本月有几天
- 本月有几天
- 本月有几天
- 本月有几天
- 本月有几天
- 本月有几天
- 得本月有几天
- 本月有几天
- Split用法
- java痛苦学习之路[九]---Java Annotation
- 题目:求1+2+…+n,
- 使用Apache shiro进行权限管理时如何对同一个URL配置多个角色的或关系
- Android中shape的使用
- 本月有几天
- Beijing_1954转WGS_1984 Geographic Transformation (optional)选项如何选择
- shell介绍
- C/C++ Source Code Analysis
- TypeError: unbound method must be called with class instance 1st argument
- android 调用系统照相机
- android shape的使用 2
- nginx Too many open files
- Binder中的ProcessState和IPCThreadState分析