选择结构我会了,但是怎么加入循环结构?
#include
using namespace std;
int main()
{
int month;
cout<<"请输入月份:"<
switch(month)
{
case 3:
case 4:
case 5:
cout<<"春季";break;
case 6:
case 7:
case 8:
cout<<"夏季";break;
case 9:
case 10:
case 11:
cout<<"秋季";break;
case 12:
case 1:
case 2:
cout<<"冬季";break;
default:
cout<<"你输入的月份不存在.";break;
}
return 0;
}