title: Linked List - Head stays NULL (C++)
body: <p>I'm reading from a file. The thing is that <code>NodePTR Ptr</code> gets corretly linked but <code>Head</code> stays <code>NULL</code>. </p>
  
  <pre><code>template &lt;typename ElementoPTR, typename Element, typename DetallePTR, typename Detail, typename Node, typename NodePTR&gt;
  void Arreglo&lt;ElementoPTR, Element, DetallePTR, Detail, Node, NodePTR&gt;::Registro(ifstream &amp;entrada)
  {
  NodePTR Ptr = Head;
  entrada &gt;&gt; Length;
  
  for (int i = 0; i &lt; Length; i++, Ptr = Ptr-&gt;Next) {
      Ptr = new Node;
      entrada &gt;&gt; Ptr-&gt;Dealer.CompanyName 
          &gt;&gt; Ptr-&gt;Dealer.AmountModels;
  
      Ptr-&gt;Dealer.Modelo = new Detail[Ptr-&gt;Dealer.AmountModels];
  
      for (int j = 0; j &lt; Ptr-&gt;Dealer.AmountModels; j++)
          entrada &gt;&gt; Ptr-&gt;Dealer.Modelo[j].ModelName &gt;&gt; Ptr-&gt;Dealer.Modelo[j].Sales;
  
      }
  }
  </code></pre>