C++ cout function print
<p>Why this function:</p>

<pre><code>uint64_t rot_xor(uint64_t a1, uint64_t a2) {
    int size = sizeof(a1)*4;
    cout&lt;&lt;" "&lt;&lt;"size:"&lt;&lt;bitset&lt;8&gt;(size).to_string()&lt;&lt;" "&lt;&lt;size;
    int shift;
    uint64_t output = 0;
    cout&lt;&lt;endl;
    for (shift = 0; shift &lt; size; shift++)
        if(a1&amp;(1&lt;&lt;shift)) {
            output ^= (a2 &lt;&lt; shift) | (a2 &gt;&gt; (size - shift));
            cout &lt;&lt; bitset&lt;64&gt;(output).to_string()&lt;&lt;endl;
        }
return output;
}
</code></pre>

<p>Print output:</p>

<hr>

<ol>
<li>: size:00010000 20</li>
<li>: 0000000000000000000000000000000010110000110000011111001011111001</li>
</ol>