Issue with cin.getline

I am working on an assignment that I currently have. I am using cin.getline to input the title of a book. The problem is every time I run it here is how it shows up in the command prompt Title: Price: $_

Why is it doing this? cin.getline seems to be the only function that can read an entire line with spaces.