Having done a Poker program in C, it should not be hard to redo the program in well styled C++.

Among the features that can and should be implemented are:

·         Cards should be a class (or struct).

·         A hand should be a class (or struct)

·         Get rid of long, ugly, statements like:  if (a[0] == ‘1’ || a[1] == ‘1’ || ... by using sensible loops or whatever.

·         A readhand function and a printhand function.

A couple of ideas that will greatly improve most programs are:

·         Implement a rank(card)  function that takes a character like ‘T’ or ‘J’ or ‘7’ and returns 0-12 or 1-13 or 2-14 (pick one).

·         Find a neat way to count how many different cards are in the hand.  (Sorting the hand by rank first makes this an easy task.  This will make classifying the hands much easier.)

·         Find a neat way to count how many of each card denomination (A, 2, ...) are present.