int card;
cout << "Enter number of card:";
cin >> card;
if (card >= 0 && card <= 8)
{
else if (card >= 9 && card <= 17)
{
else if (card >= 18 && card <= 26)
{
else if (card >= 27 && card <= 35)
{
system("pause");
cout << "Enter number of card:";
cin >> card;
if (card >= 0 && card <= 8)
{
switch (card)}
{
case 0:
case 1:
case 2:
case 3:
case 4:
cout << card + 6 << " " << char(3) << endl;case 5:
break;
cout << "J " << char(3) << endl;case 6:
break;
cout << "Q " << char(3) << endl;case 7:
break;
cout << "K " << char(3) << endl;case 8:
break;
cout << "A " << char(3) << endl;}
break;
else if (card >= 9 && card <= 17)
{
switch (card)}
{
case 9:
case 10:
case 11:
case 12:
case 13:
cout << card - 3 << " " << char(4) << endl;case 14:
break;
cout << "J " << char(4) << endl;case 15:
break;
cout << "Q " << char(4) << endl;case 16:
break;
cout << "K " << char(4) << endl;case 17:
break;
cout << "A " << char(4) << endl;}
break;
else if (card >= 18 && card <= 26)
{
switch (card)}
{
case 18:
case 19:
case 20:
case 21:
case 22:
cout << card - 3 << " " << char(5) << endl;case 23:
break;
cout << "J " << char(5) << endl;case 24:
break;
cout << "Q " << char(5) << endl;case 25:
break;
cout << "K " << char(5) << endl;case 26:
break;
cout << "A " << char(5) << endl;}
break;
else if (card >= 27 && card <= 35)
{
switch (card)}
{
case 27:
case 28:
case 29:
case 30:
case 31:
cout << card - 3 << " " << char(6) << endl;case 32:
break;
cout << "J " << char(6) << endl;case 33:
break;
cout << "Q " << char(6) << endl;case 34:
break;
cout << "K " << char(6) << endl;case 35:
break;
cout << "A " << char(6) << endl;}
break;
system("pause");
Комментариев нет:
Отправить комментарий