#include<iostream>
using namespace std;
void main ()
{
int year ,int month,int day;
cout<<"Please input the date:\n";
cin>>year>>month>>day;
bool loopyear= (year%4==0&&year%400!=0)||(year%400==0);
int February=(loopyear?29:28);
int whichday;
swich(month)
{
case 1 :whichday=day;break;
case 2 :whichday=31+February;break;
case 3 :whichday=31+February+day;break;
case 4 :whichday=31+February+31+day;break;
case 5 :whichday=31+February+31+30+day;break;
case 6 :whichday=31+February+31+30+31day;break;
case 7 :whichday=31+February+31+30+31+30+day;break;
case 8 :whichday=31+February+31+30+31+30+31+day;break;
case 9 :whichday=31+February+31+30+31+30+31+31+day;break;
case 10 :whichday=31+February+31+30+31+30+31+31+30+day;break;
case 11 :whichday=31+February+31+30+31+30+31+31+30+31+day;break;
case 12 :whichday=31+February+31+30+31+30+31+31+30+31+30+day;break;
}
cout<<"Now the date is :"<<year<<"年"<<month<<"月"<<day<<"日\n"endle;
cout<<"Now this is the"<<whichday<<"day of the year";
}
请教哪有错?