#include
using namespace std;
int main()
{
int year,month,days;
bool flag=false;
cout<<"请输入年份:";
cin>>year;
cout<<"请输入月份:";
cin>>month;
if(year%4==0 && year%100!=0 || year%400==0)
flag=true;
switch(month)
{
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
{
days=31;
cout< break; } case 4: case 6: case 9: case 11: { days=30; cout< break; } case 2: { if(flag) days=29; else days=28; cout< break; } default:cout<<"月份错误"< } return 0; }
什么程序?C,C++,VB?