0,3 1,30,31,31,30,31,30,31};for (i=0;i<month-1;i++)day+=day_tab[i];return(day);}int leap(int year)//判断是否为闰年{int leap;leap=year%4==0&&year%10 0!=0||year%400==0;return(leap);}5.10 题#include <iostream>using namespace std;int main(){inti,j,upper,lower,digit,space,other;char text[3][80];upper=lower=digit=space=other=0;for (i=0;i<3;i++){cout<<"please inputline "<<i+1<<endl;gets(text[i]);for (j=0;j<80 &&text[i][j]!='\0';j++){if (text[i][j]>='A'&&text[i][j]<='Z')upper++;else if (text[i][j]>='a'&& text[i][j]<='z')lower++;else if(text[i][j]>='0' &&text[i][j]<='9')digit++;else if (text[i][j]=='')space++;elseother++;}}cout<<"uppercase:"<<upper<<endl;cout<<"lowercase:"<<lower<<endl;cout<<"digit :"<<digit<<endl;cout<<"space :"<<space<<endl;cout<<"other :"<<other<<endl;return 0;}5.11 题#include <iostream>