ayuda con el black jack en c++

rodrigoneto
14 de Junio del 2005
porfa quiero q chekeen porq no corre mi programa

#include <iostream>
#include<conio.h>
#include <stdlib.h>
#include <time.h>
using namespace std;

int darcarta(void);
int compcarta(void);

int main()
{
int ppoint, cpoint, voluntad;
srand(time(0));

ppoint = darcarta();
cpoint = compcarta();

cout << "Su carta es " << ppoint << endl;
cout << "La carta de la banca es " << cpoint << endl;
cout << "Desea continuar?(1 = Hit/0 = Stay) ";
cin >> voluntad;

while (voluntad == 1)
{
ppoint = darcarta();
cout << "La suma de sus cartas es " << ppoint << endl;
if (ppoint < 21) {
cout << "Desea continuar?(1 = Hit/0 = Stay) ";
cin >> voluntad;
}
if (ppoint == 21) {
cout << "La suma de sus cartas es " << ppoint << endl << "BlackJack!!" << endl;
break;
}
if (ppoint > 21) {
cout << "Te pasaste :(nGAME OVER" << endl;
return 0;
}
}
while (cpoint < 17) {
cpoint = compcarta();
if (cpoint > 21) {
cout << "Se paso la banca!nUsted Gana :D!!" << endl;
return 0;
}
}

cout << "La suma de las cartas de la banca es " << cpoint << endl;

if (cpoint < ppoint) {
cout << "Gano!!!";
}
if (cpoint == ppoint) {
cout << "Empate";
}
if (cpoint > ppoint) {
cout << "Perdio!!!";
}

return 0;

}

int darcarta(void) {
static int sumacartas;
int carta;
carta = 1 + rand() % 10;
sumacartas = sumacartas + carta;
return sumacartas;
}

int compcarta(void) {
static int sumacartascomp;
int carta;
carta = 1 + rand() % 10;
sumacartascomp = sumacartascomp + carta;
return sumacartascomp;
}