F
Firiat
Ввести номер месяца и показать его на экране
#include < iostream >
#include <conio.h>
using namespace std;
void main ()
{
cout <<" Nomer MecII,a ";
char i;
cin>>i;
switch (i)
{
case 1:std:: cout <<" 9nvar ";break;
case 2: std:: cout <<" Fevral ";break;
case 3: std:: cout <<" Mart ";break;
case 4:std:: cout <<" Aprel ";break;
case 5:std:: cout <<" May";break;
case 6:std:: cout <<" June ";break;
case 7:std:: cout <<" Jule ";break;
case 8:std:: cout <<" August ";break;
case 9:std:: cout <<" Sentbr ";break;
case 10:std:: cout <<" October ";break;
case 11:std:: cout <<" Novembre ";break;
case 12:std:: cout <<" December ";break;
break;
default :cout << " Ne to ";
getch ();
}
}
Он выводит defualt , что надо поставить?
#include < iostream >
#include <conio.h>
using namespace std;
void main ()
{
cout <<" Nomer MecII,a ";
char i;
cin>>i;
switch (i)
{
case 1:std:: cout <<" 9nvar ";break;
case 2: std:: cout <<" Fevral ";break;
case 3: std:: cout <<" Mart ";break;
case 4:std:: cout <<" Aprel ";break;
case 5:std:: cout <<" May";break;
case 6:std:: cout <<" June ";break;
case 7:std:: cout <<" Jule ";break;
case 8:std:: cout <<" August ";break;
case 9:std:: cout <<" Sentbr ";break;
case 10:std:: cout <<" October ";break;
case 11:std:: cout <<" Novembre ";break;
case 12:std:: cout <<" December ";break;
break;
default :cout << " Ne to ";
getch ();
}
}
Он выводит defualt , что надо поставить?