I'd bet that you have something like a menu for selecting options ( as a numeric type ) and after that you try to read the lines.
This happens because after std::cin read some value the remaining '\n' was not processed yet, the solution would be to include #include
and then put std::cin.ignore(std::numeric_limits::max(),'\n');
before your getline(cin,title);