void main()
{
char *monthname[]={"January","February","March","April","May","June","July","August","September","October","November","December"};
int i;
while(1)
{
cout<<"Please input month No.(1~12):\n";
cin>>i;
if ( i<1||i>12)
{
cout<<"Error!"<<endl;
break;
}
cout<<"month No."<<i<<"---->"<<monthname[i-1]<<endl;
}
}