[ create a new paste ] login | about

Link: http://codepad.org/mO02ZkVa    [ raw code | fork ]

C, pasted on May 24:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
void GetPokerHand( int c1, int c2, int c3, int c4, int c5 )
{
  /* Calculate the rank of a poker hand
  Straight Flush: 9
  Four of a Kind: 8
  Full House: 7
  Flush: 6
  Straight: 5
  Three of a Kind: 4
  Two Pair: 3
  One Pair: 2
  High Card: 1
  */
  return 0;
}

int main(int argc, char *argv[])
{
  GetPokerHand( '0S', 'JS', 'QS', 'KS', 'AS' );
}


Output:
No errors or program output.


Create a new paste based on this one


Comments: