Commenting on my code
<p>I'm having difficulty commenting on my code for a blackjack app for c++.  I have coded it but now I am confused as to what to put in for comments, my instructor is frugal when it comes to commenting.</p>

<p>Thanks for any and all help! :)</p>

<p>here is my code:</p>

<pre><code>#include &lt;iostream&gt; // in/out for form
#include &lt;ctime&gt; // uses time for randomizing
#include &lt;Windows.h&gt; //

using namespace std; // prevents redundancey of ::STD


    char enter[1]; //
    int hand[52] = {}, dealer[52]; // array of 52 for 52 cards that holds zero

    int GetScore(int param) // function prototype that calls getscore
    {
        int score = 0; // 
        int temp[52]; //

        if(param == 0) for(int i = 0; i &lt; 52; i++) temp[i] = hand[i];  //
        if(param == 1) for(int i = 0; i &lt; 52; i++) temp[i] = dealer[i]; //

        for(int i = 0; i &lt; 52; i++) //
        {
            if(temp[i] == 0) break; //

            if(temp[i] != 11)
            {
                score += temp[i];
            }
        }

        for(int i = 0; i &lt; 52; i++) // simple loop to ....
        {
            if(temp[i] == 0) break;

            if(temp[i] == 11)
            {
                if(temp[i] + score &lt;= 21)
                {
                    score += 11;
                }
                else
                {
                    score += 1;
                }
            }
        }

        return score;
    }

    void ShowDealersHand(int show) //
    {
        cout &lt;&lt; "\n                          Dealer's hand: "; //

        if(show == 1) //
        {
            if(dealer[0] == 11)
            {
                cout &lt;&lt; "A [Not Shown]";
            }
            else
            {
                cout &lt;&lt; dealer[0] &lt;&lt; " [Not Shown]";
            }
        }
        else
        {
            for(int i = 0; i &lt; 52; i++)
            {
                if(dealer[i] == 0) break;

                if(dealer[i] == 11)
                {
                    cout &lt;&lt; "A ";
                }
                else
                {
                    cout &lt;&lt; dealer[i] &lt;&lt; " ";
                }
            }
        }
    }

    void Blackjack()
    {
        for(int i = 0; i &lt; 2; i++) //
        {
            int num, temp;

            if(hand[0] == 0) temp = 0;
            else temp = 1;

            num = rand() % 10 + 2;
            hand[temp] = num;

            num = rand() % 10 + 2;
            dealer[temp] = num;
        }

        ShowDealersHand(1); //
        cout &lt;&lt; endl &lt;&lt; endl &lt;&lt; "                          Your hand: "; //

        for(int i = 0; i &lt; 52; i++) //
        {
            if(hand[i] == 0) break;

            if(hand[i] == 11)
            {
                cout &lt;&lt; "A ";
            }
            else
            {
                cout &lt;&lt; hand[i] &lt;&lt; " ";
            }
        }

        cout &lt;&lt; endl &lt;&lt; "                          Your score: " &lt;&lt; GetScore(0) &lt;&lt; endl &lt;&lt; endl;

        while(GetScore(0) &lt;= 21)
        {
            cout &lt;&lt; "                          Hit(h) or stand(s): ";

            cin &gt;&gt; enter;

            if(strcmp(enter, "h") == 0)
            {
                int card = rand() % 10 + 2;

                for(int i = 0; i &lt; 52; i++)
                {
                    if(hand[i] == 0)
                    {
                        hand[i] = card;
                        break;
                    }
                }

                cout &lt;&lt; "                          Your hand: ";

                for(int i = 0; i &lt; 52; i++)
                {
                    if(hand[i] == 0) break;

                    if(hand[i] == 11)
                    {
                        cout &lt;&lt; "A ";
                    }
                    else
                    {
                        cout &lt;&lt; hand[i] &lt;&lt; " ";
                    }
                }

                cout &lt;&lt; endl &lt;&lt; "                          Your score: " &lt;&lt; GetScore(0) &lt;&lt; endl &lt;&lt; endl;

                if(GetScore(0) &gt; 21)
                {
                    cout &lt;&lt; "                           - ..BUST.. -" &lt;&lt; endl ;
                    cout &lt;&lt; "\n                         - !!House Wins!! -";
                    goto end;
                    break;
                }
            }
            else if(strcmp(enter, "s") == 0)
            {
                cout &lt;&lt; endl;

                break;
            }

            system("pause &gt; nul");
        }

        Sleep(2000);

        ShowDealersHand(0);
        cout &lt;&lt; endl &lt;&lt; "                          Dealer score: " &lt;&lt; GetScore(1) &lt;&lt; endl &lt;&lt; endl;

        if(GetScore(1) &lt; GetScore(0))
        {
            while(GetScore(1) &lt; 17 &amp;&amp; GetScore(0) &lt;= 21)
            {
                Sleep(2000);

                int card = rand() % 10 + 2;

                for(int i = 0; i &lt; 52; i++)
                {
                    if(dealer[i] == 0)
                    {
                        dealer[i] = card;
                        break;
                    }
                }

                cout &lt;&lt; "                          Dealer's hand: ";

                for(int i = 0; i &lt; 52; i++)
                {
                    if(dealer[i] == 0) break;

                    if(dealer[i] == 11)
                    {
                        cout &lt;&lt; "A ";
                    }
                    else
                    {
                        cout &lt;&lt; dealer[i] &lt;&lt; " ";
                    }
                }

                cout &lt;&lt; endl &lt;&lt; "                          Dealer score: " &lt;&lt; GetScore(1) &lt;&lt; endl &lt;&lt; endl;

                if(GetScore(1) &gt;= GetScore(0)) break;
            }
        }

        end:
        if(GetScore(1) &gt; GetScore(0) &amp;&amp; GetScore(1) &lt;= 21)
        {
            cout &lt;&lt; "                          - !!House Wins!! -";
        }
        else if(GetScore(1) == GetScore(0) &amp;&amp; GetScore(0) &lt;= 21)
        {
            cout &lt;&lt; "                          * Tie * - !!House Wins!! -";
        }
        else if(GetScore(0) &lt;= 21)
        {
            cout &lt;&lt; "                                - !!!You win!!! -"; // outputs if you win
        }

        system("pause &gt; nul");
        system("cls");
    }

    void main() // no return on main for form to start
    {
        srand((unsigned int)time(0)); // randomizer unasigned initializer

        cout &lt;&lt; "                    *-*-*-*-*Zachattack's Blackjack*-*-*-*-*" &lt;&lt; endl &lt;&lt; endl; // Name of program outputs to user

        Blackjack();
    }
</code></pre>
