Question: I trying to write a program in C++ using vectors its called a card shuffle program and I don't know where to start. Here is

I trying to write a program in C++ using vectors its called a card shuffle program and I don't know where to start. Here is a copy of what is required for this assignment.

This is the first part of a project to deal 13 cards to 4 players from a shuffled deck of 52 cards. Each card in the deck will be represented by an integer from 0 to 51. We will see later how to translate the integer into a string representing a card. The deck and each hand will be represented by a vector of ints. The vectors should be declared in the main function and not declared globally.

void unwrap(deck) - load the deck vector with integers in order from 0 to 51

void shuffle(deck) - shuffle the deck vector using random_shuffle method - see pages 1008 and 1014 in the text (you'll need to "#include " in order to use this)

You can use the debugger to show these functions are working correctly. Future labs will have you write a "deal" function and "showHand" function

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!