title: How can I create a linked list where one node is pointing to more than one other note?
body: <p>Similar to this example:</p>
  
  <p><a href="https://i.stack.imgur.com/6CM4x.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6CM4x.png" alt="enter image description here"></a></p>
  
  <p>I wanna make a linked list node connections as shown in the picture but I am stuck, how should I proceed?</p>
  
  <pre><code>class Node{
  
  public:
      int id;
      int count;
      int *next;
      int *prev;
      Node(int a): id(a), count(0), next(NULL), prev(NULL) {};
      Node(const int &amp; ss, const int &amp;c): id(ss), count( c), next(NULL), prev(NULL) {};
  </code></pre>
  
  <p>Right now I have these and some other setter and getter functions.</p>