This is my start of a blackjack game, I am tryin gto get the shuffle working, but i get an error that says "SHUFFLE(2) 0x2347:0x00EF Processor Fault". I am using Borland Turbo C++ 4.5. Here's my code with the error line in bold.
//Shuffle
#include<iostream.h>
#include<stdlib.h>
#include<apvector.h>
void randomizecard (apvector<int>&, apvector<int>&, int &);
void check(apvector<int>&, apvector<int>&, int &);
void main ()
{
apvector<int> card(54,0); //card value } SAME CARD, 1 ARRAY HOLDS
apvector<int> cards(54,0); //card suit } VALUE, OTHER HOLDS SUIT
randomize;
for(int i = 1; i <=53; i++)
{
randomizecard(card, cards, i);
}
}
void randomizecard (apvector<int> &card, apvector<int> &cards, int &i)
{
card[i]=random(13)+1; //randomizin



LinkBack URL
About LinkBacks


