В минимальном представлении (без проверки ввода), будет выглядеть таким образом:
#include <iostream>
int main()
{
int num;
std::cout << "Vvedite nomer ot 1 do 12: ";
std::cin >> num;
switch (num)
case 1: std::cout << "January";
break;
case 2: std::cout << "February";
case 3: std::cout << "March";
case 4: std::cout << "April";
case 5: std::cout << "May";
case 6: std::cout << "June";
case 7: std::cout << "July";
case 8: std::cout << "August";
case 9: std::cout << "September";
case 10: std::cout << "October";
case 11: std::cout << "November";
case 12: std::cout << "December";
default:
}
system("pause>nul");
В минимальном представлении (без проверки ввода), будет выглядеть таким образом:
#include <iostream>
int main()
{
int num;
std::cout << "Vvedite nomer ot 1 do 12: ";
std::cin >> num;
switch (num)
{
case 1: std::cout << "January";
break;
case 2: std::cout << "February";
break;
case 3: std::cout << "March";
break;
case 4: std::cout << "April";
break;
case 5: std::cout << "May";
break;
case 6: std::cout << "June";
break;
case 7: std::cout << "July";
break;
case 8: std::cout << "August";
break;
case 9: std::cout << "September";
break;
case 10: std::cout << "October";
break;
case 11: std::cout << "November";
break;
case 12: std::cout << "December";
break;
default:
break;
}
system("pause>nul");
}