I'm a newbe to c++ and have been researching the getline command
in Xcode I have gotten to this stage
std::string handle, title;
std::cout << "Enter your name: " << std::endl;
std::getline (std::cin , handle ) ;
std::cout << "Enter your favourite movie: " << std::endl;
std::getline ( std::cin , title) ;
std::cout << handle << "'s favourite movie is " << title << std::endl;
but the
std::cout << "Enter your name: " << std::endl;
std::getline (std::cin , handle ) ;
doesn't give a prompt for user input but
std::cout << "Enter your favourite movie: " << std::endl;
std::getline ( std::cin , title) ;
does. Can anyone tell me why