title: Correctly implementing a singly linked list C++
body: <p>I have a list with names of employers such as:</p>
  
  <p>Node 1: Jill, <strong>Matt</strong>, Joe, Bob, <strong>Matt</strong></p>
  
  <p>Node 2: Jeff, James, <strong>John</strong>, Jonathan, <strong>John</strong>, Edward</p>
  
  <p>Node 3: Matt, Doe, <strong>Ron</strong>, Pablo, <strong>Ron</strong>, <strong>Chase</strong>, <strong>Ron</strong>, Chase, Loui</p>
  
  <p>and I'm trying to get it to where if it sees a repeat it will send it to the front of the list and delete that current node, so that it will look like this</p>
  
  <p>Node 1: <strong>Matt</strong>, Jill, Joe, Bob</p>
  
  <p>Node 2: <strong>John</strong>, Jeff, James, Jonathan, Edward</p>
  
  <p>Node 3: <strong>Chase</strong>, <strong>Ron</strong>, Matt, Doe, Pablo, Loui</p>
  
  <p>Unfortunately, My output is close to what I would like. It's deleting the duplicate entries, but it's not sending to the front. .</p>
  
  <p>My output:</p>
  
  <p>Node 1:  Jill, <strong>Matt</strong>, Joe, Bob,</p>