1年目の日付を判断する
759 ワード
/*
* Copyright (c) 2016,
* All rights reserved.
* :
* :2016 12 27
* : 。
*/
#include
#include
#include
#include
#include
#include
using namespace std;
struct date{
int year;
int month;
int day;
}date;
int main(){
int a[11]={31,28,31,30,31,30,31,31,30,31,30};
while(scanf("%d%d%d",&date.year,&date.month,&date.day)!=EOF)
{
int sum=0;
for(int t=0;t2)
sum++;
cout<
転載先:https://www.cnblogs.com/super-yang/p/6819585.html