English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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

2 answers

Suppose you have the following idea

* homework assignment
o Read course material
o Do own work

4A : Open books, and course notes : READ THEM : Return TRUE is this is sensible
4B : Look at the section on "comparisons" most likely IF type statements : Return TRUE if this makes sense
4C : Write assignment : Return TRUE if this would teach more than someone else writing it for you

2007-11-05 16:25:49 · answer #1 · answered by stu_the_kilted_scot 7 · 2 0

IF A CHICKEN AND A HALF LAYS AN EGG AN A HALF
IN A DAY AN A HALF. HOW LONG DOES IT TAKE TO LAY TWO EGGS

2007-11-05 16:26:48 · answer #2 · answered by MAttsprat 5 · 0 0

fedest.com, questions and answers