#include <iostream.h>
void main ()
{
int x;
cout<<"请输入数字1~7其中的一个数"<<endl;
cin>>x;
if(x==1)
cout<<"monday或星期一"<<endl;
else
if(x==2)
cout<<"tuesday或星期一"<<endl;
else
if(x==3)
cout<<"wednesday或星期三"<<endl;
else
if(x==4)
cout<<"thursday或星期四"<<endl;
else
if(x==5)
cout<<"friday或星期五"<<endl;
else
if(x==6)
cout<<"saturday或星期六"<<endl;
else
cout<<"sunday或星期日"<<endl;
}
--说着,我脱下了楼主的胖次
void main ()
{
int x;
cout<<"请输入数字1~7其中的一个数"<<endl;
cin>>x;
if(x==1)
cout<<"monday或星期一"<<endl;
else
if(x==2)
cout<<"tuesday或星期一"<<endl;
else
if(x==3)
cout<<"wednesday或星期三"<<endl;
else
if(x==4)
cout<<"thursday或星期四"<<endl;
else
if(x==5)
cout<<"friday或星期五"<<endl;
else
if(x==6)
cout<<"saturday或星期六"<<endl;
else
cout<<"sunday或星期日"<<endl;
}
--说着,我脱下了楼主的胖次