title: Having an issue using the getline function
body: <p>I'm trying to utilize the <code>getline()</code> function twice in order to store a title of a book and then the name of the author in two separate variables which I would then use later to write this information to the file. However, whenever I run the program and arrive to the part where I am to add the book, it skips the input phase for Book Title and skips straight to Author (it blinks, letting me know I can input for the author but it never blinked for the title).</p>
  
  <pre><code>void LMS_Processing::addBook()
  {
      fstream listingsFile;
  
      string title = "";
      string author = "";
  
      system("cls");
  
      listingsFile.open("listing.books", ios::out | ios::app);
  
      cout &lt;&lt; "LMS: Edit - Add Book" &lt;&lt; endl;
      cout &lt;&lt; endl;
      cout &lt;&lt; "Book Title: ";
      getline(cin, title);
  
      listingsFile &lt;&lt; title &lt;&lt; ':';
  
      cout &lt;&lt; endl;
      cout &lt;&lt; "Author: ";
      getline(cin, author);
  
      listingsFile &lt;&lt; author &lt;&lt; ':';
      listingsFile &lt;&lt; "in" &lt;&lt; endl;
  
      listingsFile.close();
  }
  </code></pre>
  
  <p>Basically, by following the procedure of the code it prints "Book Title: " and then ignores the fact that I put <code>getline(cin, title)</code> and then continues on.</p>