title: How to write multiple columns in a loop in c++?
body: <p>Suppose I have a loop:</p>
  <pre class="lang-cpp prettyprint-override"><code>for(int i=1; i&lt;=1024; i++)
  </code></pre>
  <p>I want to fill a file with 128 columns (not rows!), so the first column contains numbers from 1 to 8, second from 9 to 16 and so on and so forth.</p>