Hi. I am trying to get input as a string and when I do this code segment:
it displays the prompt but then "Press any key to continue" and exits the program. iostream.h is included. Am I using getline incorrectly?Code:string artist; cout << "Enter the artist of the album you wish to delete ->"; getline (cin, artist);




Reply With Quote