array of available cards (52)
the ranks and suits in
integers
rank and suit characters
ch is used to
store the value from check yes or no bad card
getchar()
0 means false, the computer
will check for the card's
existence within the
arrays
as long as the cards being read
are lower than 5 (the number
of cards used in poker), the program
will carry out the following code:
assigning values to
the ranks
not valid --> bad card
assigning the values to
the suits
not valid --> bad card
whitespace --> bad card
true --> duplicate
to check how many of the same ranks and suits.
the amount of card already read
number of consecutive cards
flush means 5 cards of the same suit
consecutive ranks
4 of the same rank 3 of the same rank
UNINITIALIZED
DONT TAMPER WITH WHAT YOU DONT KNOW
declare pointers
1/ if we declare pointers,
we have to let C know that
it's a pointer by putting
asterisk before it.
2/ if we use asterisks in
arguments and functions, input actual pointers
it means dereferencing.
row