第1个回答 2010-10-28
//直接写的,你看看
#include"iostream.h"
void main()
{
char*month[13]={"0","January","February","March", "April" , "May", "June", "July","August" ,"September" ,
"October" ,"November" ,"December"
} ;
int inNum;
cin>>inNum;
while(inNum>0&&inNum<13)//只要输入不在1-12范围内就结束
{
cout<<month[inNum]<<endl;
cin>>inNum;
}
}