blackjack - void copy(struct card*lval struct card*rval...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <stdio.h> #include <stdlib.h> #include <time.h> struct card { int num; char suit; }; struct hand { struct card *one_card; struct hand *next; }; static char suits[4] = {'C', 'D', 'H', 'S'}; void createdeck(struct card deck[]); struct card* drawcard(struct card deck[], int *cardsleft); struct hand* addcard(struct card *add, struct hand *the_cards);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: void copy(struct card *lval, struct card *rval); char getkind(int value); void printcard(struct card *one); void printhand(struct hand *the_cards); int score(struct hand *the_cards); char getcard(int score); int status(struct hand *the_cards, char *name);...
View Full Document

This note was uploaded on 11/09/2009 for the course COP 3223 taught by Professor Guha during the Fall '08 term at University of Central Florida.

Ask a homework question - tutors are online