title: Array of ASCII characters
body: <p>I am trying to make an array of all 32-255 ASCII characters, but I don't really think this is an array that I have created? </p>
  
  <pre><code>int main()
  {
      cout &lt;&lt; " ASCII 32 - 255\n";
  
      int col = 1;                                        
  
      for (int asc_char = 32; asc_char &lt; 256; asc_char++) 
      {
          cout &lt;&lt; std::setw(6) &lt;&lt; asc_char &lt;&lt; setw(3) &lt;&lt; static_cast&lt;char&gt;(asc_char);
  
          col++;
          if (col &gt; 7)                                    
          {
              col = 1; 
          }
      cout &lt;&lt; "\n";
  
      return 0;
  }
  </code></pre>
  
  <p>UPDATE:</p>
  
  <p>This is how my code is now. The ASCII table comes out in an array, but not in 7 columns and 32 rows. The 32,33,34,35,36 before each character is also gone.</p>
  
  <pre><code>#include&lt;iostream&gt;
  #include&lt;iomanip&gt;
  using namespace std;
  
  int main()
  {
      cout &lt;&lt; " ASCII 32 - 255\n";
  
      unsigned char myarray[7][32] = {};
      int val = 32;
      {
  
          for (size_t i = 0; i &lt; 7; i++) {
              for (size_t j = 0; j &lt; 32; j++) {
                  myarray[i][j] = val++;
              }
          }
      }
      // for (int asc_char = 32; asc_char &lt; 256; asc_char++)
      //  cout &lt;&lt; std::setw(6) &lt;&lt; asc_char &lt;&lt; setw(3) &lt;&lt; static_cast&lt;char&gt;(asc_char);
       for (auto&amp; row : myarray) {
           for (auto&amp; col : row) {
               std::cout &lt;&lt; col &lt;&lt; ' ';
           }
           std::cout &lt;&lt; '\n';
       }
  
          return 0;
      }
  </code></pre>