I need help making a vector to shuffle the deck of cards randomly as well as picking a card from the top of the deck, then discard a card back into the deck. The program should then reshuffle after cards have been discarded back into the deck.
#include <iostream>
using namespace std;
int main(int argc, char* argv[])
{
int deck[52];
srand(time(0));
int card;
for (int i = 0; i< 52; i++)
{
deck[i] = i;
cout << deck[i] << " ";
}
cout <<"\n" << endl;
random_shuffle(&deck[0], &deck[52]);
for (int p = 0; p< 52; p++)
{
cout << deck[p] << " ";
}
cout << "\n";
return 0;