Application freezes up when delete this is called.
This is the function that causes the problem.
I call the function in this function:
And I call cleanup here:
deck->~Deck(); // delete deck
for (unsigned int loop = 0; loop < players.size(); loop++) // delete hands
players.clear(); //delete players
Basically the program freezes when I make it go to case 1. Any ideas why I can't do that?
int Card_Game::main_menu(int result)
case 1: // play blackjack
cleanup(); // cleanup just in case
deck = new Deck;
case 2: // quit game
default:// invalid entry
std::cout << "Please enter 1 or 2.\n";