CPSC170A
Fundamentals of Computer Science II

Lab 14

Member Functions

Playing Card

Create a structure that represents a playing card. The structure should have member functions to support the following usage.

Card jack_of_diamonds(1, 11);
Card random_card;
if (random_card == jack_of_diamonds) {
  std::cout << "random card is jack of diamonds" << std::endl;
} else {
  std::cout << "random card is not jack of diamonds" << std::endl;
}

Be sure to test each function individually and thoroughly.