Suppose you have the following structure for a Card:
* struct Card
o int suit
o int rank
4A. Write a function that takes two Cards as input, and returns "true" if they have the same suit and false otherwise.
4B. Write a function that takes two Cards as input, and returns "true" if they have the same rank and false otherwise.
4C. Write a function that takes two Cards as input, and returns "true" if they are the same card (same rank and suit).
2007-11-05
16:21:43
·
2 answers
·
asked by
sdc
1
in
Computers & Internet
➔ Programming & Design