title: pertaining to C++11, whats wrong with my simple program?
body: <p>my name is Adam, I have just begun to learn C++, I love it, but am only on pg 181 in the seventh edition of sams teach yourself C++ in one hour a day, and pg 102 in the seventh edition of C++ for dummies. I have seven multi page notes on the sams book, and twenty one multi page notes on the for dummies book. Please help me understand why I get 5 errors with my simple program which will be shown shortly. I do not want to use -fpermissive option, I need to learn how to code correctly as I am not very experienced. Thank you everyone, very very much, I absolutely love C++, and even have a very good idea on a simple program I plan to learn how to write, which could allow program development time, or writing time to be reduced by 5-20 times on average. The following program shown is not this program however, but please help me so I may one day write, and use my program idea for a college paper. Thank you again, problem program follows:</p>
  
  <pre><code>            #include &lt;iostream&gt;
              using namespace std;
  
          int main()
      {
          cout&lt;&lt; "how many integers do you wish to enter? ";
          int InputNums = 0;
          cin&gt;&gt; InputNums;
  
          int* pNumbers = new int [InputNums];
          int* pCopy = pNumbers;
  
          cout&lt;&lt; "successfully allocated memory for "&lt;&lt;
           InputNums&lt;&lt; " integers"&lt;&lt;endl;
          for(int Index = 0; Index &lt; InputNums; ++Index)
          {
              cout&lt;&lt; "enter number "&lt;&lt; Index &lt;&lt; ": ";
              cin&gt;&gt; *(pNumbers + Index);
          }
  
              cout&lt;&lt; "displaying all numbers input: " &lt;&lt;endl;
          for(int Index = 0, int* pCopy = pNumbers;
                  Index &lt; InputNums; ++Index)
               cout&lt;&lt; *(pCopy++) &lt;&lt; " ";
  
               cout&lt;&lt; endl;
  
               delete[] pNumbers;
               cout&lt;&lt; "press enter to continue..." &lt;&lt; endl;
               cin.ignore(10, '\n');
               cin.get();
  
               return 0;
      }
  </code></pre>
  
  <p>The problem is indicated as being in the multiple initializations of the second for loop. Please tell me why my problem program will not compile. Thank you all. Sincerely Adam.</p>