Home > Net >  Wrote a section of the poker licensing procedures, but output of design and color
Wrote a section of the poker licensing procedures, but output of design and color

Time:10-04

The namespace CSHARPEX06
{
Class Program
{
The static void Main (string [] args)
{
Card Card=new Card ();
Card. The deal ();


}
}
Struct CNode
{
Public Char suit;
Public string face;
}
Enum CardNum
{
CARDNUMBRE=52,
SUITNUMBER=4,
FACENUMBER=13
}
The class Card
{
Private CNode [] deck;
Public Card ()
{
Deck=new CNode [(int) CardNum CARDNUMBRE];
Char [] suit={(char) 3, (char) 4, (char) 5, 6} (char);
String [] face={" A ", "2", "3", "4", "5", "6", "7", "eight" and "9", "10", "J", "Q", "K"};
For (int I=0; I & lt; (int) CardNum. CARDNUMBRE; I++)
{
Deck [I] face=face [I % (int) CardNum. FACENUMBER];
Deck [I]. Suit=suit [I/(int) CardNum. FACENUMBER];

}
}
Public void deal ()
{
Console. Write ("==================");
The Console. Write (" 52 CARDS licensing order ");
Console. Write ("==================");
Console. WriteLine ();
The Console. Write (" a b c d ");
For (int I=0; I & lt; (int) CardNum. CARDNUMBRE; I++)
{
The Console. Write (" the first {0, 2} z: {1} {2} \ t ", I + 1, deck [I] suit, deck [I] face);
If ((I + 1) % 4==0)
{
Console. WriteLine ();
}


}
Console. WriteLine ();
}
}
}

CodePudding user response:

Design and color should not be SHDC said red square grass

CodePudding user response:

Theoretically use char restore a ASCLL code into the corresponding character right, 3,4,5,6 corresponding ASCLL character is red grass, I look at the others so written, how could I not know output.

CodePudding user response:

Can not all terminal 3 to display graphics,4,5,6
So let's output text

CodePudding user response:

The
reference 3 floor stherix response:
can not all terminal 3,4,5,6 display into graphic
So let's output text

Can display graphics, alas, others VS2017 I this to 2019, and may not be able to display
  •  Tags:  
  • C #
  • Related