Shuffling a deck of cards?
<p>I am VERY new to c++ and I still haven't wrapped my head around the basic concepts yet but my professor wants us to write an algorithm to shuffle and display a deck of cards and the deck needs to be represented as a 2d array. </p>

<p>However I am having trouble just simulating the deck of cards!</p>

<pre><code>  #include &lt;iostream&gt;
#include &lt;vector&gt;

using namespace std;

int main() {
    vector&lt;char&gt; deck;
    char suit[] = {'h','d','c','s'};
    char card[] = {'2','3','4','5','6','7','8','9','T','J','Q','K','A'};
    for (int j=0; j&lt;13; j++) {
        for (int i=0; i&lt;4; i++) {
            deck.push_back(card[j] suit[i]);
        }       
    }

    return 0;
}
</code></pre>

<p>I've seen a lot of card programs with classes but I'm not even sure if we are going to learn those this semester. </p>
