#include <iostream>
using namespace std;
int main()
{
int choice;
for (;;) //infinite loop lolz
{
cout << "This is a test switch-case, choose a number from 1 ~ 7: ";
cin >> choice;
switch(choice)
{
case 1:
cout << "You've picked number one. Please pick another number.\n\n";
continue;
case 2:
cout << "You've picked number two. Please pick another number.\n\n";
continue;
case 3:
cout << "You've picked number three. Please pick another number.\n\n";
continue;
case 4:
cout << "You've picked number four. Please pick another number.\n\n";
continue;
case 5:
cout << "You've picked number five. Please pick another number.\n\n";
continue;
case 6:
cout << "You've picked number six. Please pick another number.\n\n";
continue;
case 7:
cout << "You've picked number seven. Please pick another number.\n\n";
continue;
default:
cout << "You didn't pick any number from 1 ~ 7. Please pick again.\n\n";
continue;
}
}
return 0;
}