Written down so that it not wrote
# include
# include
# include
# include
Int first;
Struct playercrad
{
Int a, [20].
Int ct [20];
Int the pre=0;
} [7] p;
Void pve () {
}
Int main ()
{
int n;
While (1) {
Printf (" poker games \ n \ n \ n choose difficulty: 1, three against two and computer against ");
N=getch ();
If (n - 48==1)
{system (" CLS ");
break;
}
Else if (n - 48==2)
{system (" CLS ");
break;
}
The else {
System (" CLS ");
continue;
}
}
Srand (time (NULL));
Int m, check [60]={0};
Int i2=1;
While (1)
{
If (i2==17)
{
I2=1.
break;
}
M=2 + rand () % of 52;
If (check [m]==1)
continue;
P [1], a [i2]=m;
If (m==28)
The first=1;
Check [m]=1;
I2 + +;
}
While (1)
{
If (i2==17)
{
I2=1.
break;
}
M=2 + rand () % of 52;
If (check [m]==1)
continue;
P [2], a [i2]=m.
If (m==28)
The first=2;
Check [m]=1;
I2 + +;
}
While (1)
{
If (i2==18)
{
I2=1.
break;
}
M=2 + rand () % of 52;
If (check [m]==1)
continue;
P [3], a [i2]=m;
If (m==28)
The first=3;
Check [m]=1;
I2 + +;
}
If (n==49)
{
Int m1 [200], I=1, pf=1, ff=1;
While (1)
{
If (pf==1)
{
Printf (" % d, please players out first C2 (28)! \ n ", first);
}
If (ff==4)
Ff=1;
If (pf=1)
{
Printf (" the CARDS on the table: no, you are the first to play) \ n \ n \ n ");
Printf (" your hand (if not more card please enter 0) : \ n ");
For (int u=1; u<=17; U++)
{
If (p [first] a [u] <=14 & amp; & P [first] a [u] & gt;
=2){
Printf (" % c ", 003);
If (p [first] a [u]==11)
Printf (" J ");
Else if (p [first] a [u]==12)
Printf (" Q ");
Else if (p [first] a [u]==13)
Printf (" K ");
Else if (p [first] a [u]==14)
Printf (" A ");
The else
Printf (" % d ", p [first] [u] a);
}
If (p [first] a [u] <=27 & amp; & P [first] a [u] & gt;
=15){
Printf (" % c ", 004);
If ((p [first] a [u] - 13)==11)
Printf (" J ");
Else if ((p [first] a [u] - 13)==12)
Printf (" Q ");
Else if ((p [first] a [u] - 13)==13)
Printf (" K ");
Else if ((p [first] a [u] - 13)==14)
Printf (" A ");
The else
Printf (" % d ", p [first] a [u] - 13).
}
If (p [first] a [u] <=40 & amp; & P [first] a [u] & gt;=28)
{
Printf (" % c ", 005);
If ((p [first] a [u] - 26)==11)
Printf (" J ");
Else if ((p [first] a [u] - 26)==12)
Printf (" Q ");
Else if ((p [first] a [u] - 26)==13)
Printf (" K ");
Else if ((p [first] a [u] - 26)==14)
Printf (" A ");
The else
Printf (" % d ", p [first] a [u] - 26);
}
If (p [first] a [u] <=53 & amp; & P [first] a [u] & gt;=41)
{
Printf (" % c ", 006);
If ((p [first] a [u] - 39)==11)
Printf (" J ");
Else if ((p [first] a [u] - 39)==12)
Printf (" Q ");
Else if ((p [first] a [u] - 39)==13)
Printf (" K ");
Else if ((p [first] a [u] - 39)==14)
Printf (" A ");
The else
Printf (" % d ", p [first] a [u] - 39).
}
Printf (" (% d) ", p [first] [u] a);
}
}
If (pf> 1)
{
Printf (" % d # players play please! \ n ", ff);
Ff++;
Printf (" tip: for 2-14 square piece of red peach in 14-26 plum 27-39 spades 40-52 \ n \ n \ n ");
Printf (" the CARDS on the table: ");
If (m1 [1] pf & lt;=14 & amp; & M1 [pf - 1] & gt;
=2){
Printf (" % c ", 003);
If (m1 [1] pf==11)
Printf (" J ");
Else if (m1 [1] pf==12)
Printf (" Q ");
Else if (m1 [1] pf==13)
Printf (" K ");
Else if (m1 [1] pf==14)
Printf (" A ");
The else
Printf (" % d ", [1] pf m1);
}
If (m1 [1] pf & lt;=27 & amp; & M1 [pf - 1] & gt;
=15){
Printf (" % c ", 004);
If ((m1] [pf - 1-13)==11)
Printf (" J ");
Else if ((m1] [pf - 1-13)==12)
Printf (" Q ");
Else if ((m1] [pf - 1-13)==13)
Printf (" K ");
Else if ((m1] [pf - 1-13)==14)
Printf (" A ");
The else
Printf (" % d ", m1] [pf - 1-13).
}
If (m1 [1] pf & lt;=40 & amp; & M1 [pf - 1] & gt;=28)
{
Printf (" % c ", 005);
If ((m1 [1] pf - 26)==11)
Printf (" J ");
Else if ((m1 [1] pf - 26)==12)
Printf (" Q ");
Else if ((m1 [1] pf - 26)==13)
Printf (" K ");
Else if ((m1 [1] pf - 26)==14)
Printf (" A ");
The else
Printf (" % d ", m1 [1] pf - 26);
}
If (m1 [1] pf & lt;=53 & amp; & M1 [pf - 1] & gt;=41)
{
Printf (" % c ", 006);
If (39) (m1 [1] pf -==11)
Printf (" J ");
Else if (39) (m1 [1] pf -==12)
Printf (" Q ");
Else if (39) (m1 [1] pf -==13)
Printf (" K ");
Else if (39) (m1 [1] pf -==14)
Printf (" A ");
The else
Printf (" % d ", m1 [1] pf - 39).
}
Printf (" (% d) ", [1] pf m1);
Printf (" your hand (if not more card please enter 0) : \ n ");
For (int u=1; u<=17; U++)
{
If (p [ff] a [u] <=14 & amp; & P [pf] a [u] & gt;
=2)nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull