title: Phonebook using double Linked List
body: <p>The problem is that program runs fine for the first choice but it starts repeating without asking for choice and going into the addNode or SearchNode function</p>
  
  <pre><code>list *newList = new list;
  
  int choice = 0;
  while (choice != 3)
  {
      printf("What would you like to do?\n");
      printf("1 - Insert something in the phonebook?\n");
      printf("2 - Search something from the phonebook?\n");
      printf("3 - Nothing at all\n");
      printf("Enter 1 through 5: ");
      scanf_s("%d", &amp;choice);
  
  
      switch (choice) {
      case 1:
          newList-&gt;addNode();
          break;
      case 2:
          newList-&gt;searchNode();
          break;
      default:
          printf("\nThank you for using the phonebook\n");
      }
      choice = 0;
  }
  </code></pre>