Question: Every time I run my program I get this message. #include #include #include #include #include using namespace std; const char * suits[] = { clubs,

Every time I run my program I get this message.

Every time I run my program I get this message. #include #include #include #include #include #include #include using namespace std;

const char * suits[] = { "clubs", "hearts", "spades", "diamonds" }; const char * numbs[] = { "ace", "two", "three", "four", "five", "six", "seven", "eight" "nine", "ten", "jack", "queen", "king"}; char * ourDeck[52];

void createDeck(const char * [], const char * [], char * []); void showDeck(char*[]); void shuffleDeck(char*[]); void finishUp(char*[]);

void main(void) { createDeck(suits, numbs, ourDeck);

cout

cout Key to see the sorted deck..."; cin.get();

cout

cout key to leave the program..."; cin.get(); };

void createDeck(const char * theSuits[], const char * theNumbs[], char * theDeck[]) { int i, j, counter, lengthNeeded; counter = 0; for (i = 0; i

counter++; }; }; };

void showDeck(char * theDeck[]) { for (int i = 0; i

void shuffleDeck(char*theDeck[]) { int i, randLine; char*temp; time_t t;

srand((unsigned)time(&t)); for (i = 0; i

void finishUp(char*theDeck[]) { for (int i = 0; i Microsoft Visual C++ Runtime Library X Debug Assertion Failed! Program: E:\CSDP 222\program5\Debug\program5.exe File: minkernel\crts\ucrt\inc corecrt_internal_string_templates.ch Line: 50 Expression: (L"Buffer is too small" &&0) For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts. (Press Retry to debug the application) Abort Retry Ignore

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!