Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. // find the minimum card in the deck
  2. void PlayerBST::min(CardNode *root){
  3. if (root == NULL){
  4. return;
  5. }else if (root != NULL){
  6. if (root->left != NULL){
  7. root = root->left;
  8. min(root);
  9. }else{
  10. CardNode *minimum = root;
  11. //cout << "THIS IS THE MIN IN HAND: " << minimum->suit << " " << minimum->value << endl;
  12. }
  13. }
  14. return;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement