Hello everyone. I am trying to prompt the user for the title of a class course. For example, "Data Structures". I know I need to use the getline function, and I know how to use it. The problem I am having is when I use the getline command, it completely skips the input. Here is what I have:
If I just use the cin and only input one word, it all works the way it should. When I uncomment the getline command, and input two or more words, it completely skips the user from inputting anything. I am not sure what I am doing wrong. Any help would be appreciated. Thank you.