All pastes #222017 Raw Edit

Stuff

public text v1 · immutable
#222017 ·published 2006-10-26 00:28 UTC
rendered paste body
#include <stdio.h>
#include <time.h>
#include <stdlib.h>

#define BUST = 21

enum status {BREAK, HIT, WIN}; /*Constants for game status*/

int randomcard(void); /*Function dealing 1 random card*/

int main()
{

int pcard,dcard = 0; /*Player card, and Dealer card*/
int dtotal, ptotal; /*Dealer, and Player totals*/
unsigned seed;

enum status gameStatus;

srand( seed );

printf ("Welcome to Jeff's BlackJack Version 1.0\n\n");

pcard = randomcard();
dcard = randomcard();

return 0;
}

int randomcard(void)
{
int card = 0;

card =  rand() % 10;

printf ("You were dealt a %d", &card);

return card;
}