How can I display a sort of Binary Tree of collatz conjecture?
<p>I have created a program that generates a linked list of elements of collatz conjecture's "tree" as shown below:</p>

<p><a href="https://i.stack.imgur.com/pfhVo.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pfhVo.jpg" alt="Collatz tree"></a></p>

<p>I want my linked list to be displayed in terminal Something like this:</p>

<pre><code>  1  
  |  
  2  
  |  
  4  
  |  
  8  
  |  
 16  
  |   \  
 32    5  
  |    |  
 64   10
</code></pre>

<p>But I don't know how to proceed.</p>

<p><a href="https://github.com/adiultra/CollatzRsrch/blob/master/cop.cpp" rel="nofollow noreferrer">This</a> is the code I have created for generating the series.</p>

<p>Note:</p>

<ul>
<li>splitter is the number that yields two numbers that point to it.</li>
<li>if a number is not splitter it will have odd pointer as NULL</li>
</ul>