hi,
I have this code:
the output is:PHP Code:
...
string BookName, Author;
cout << "> Enter book title: ";
getline(cin, BookName); // this does not work
cout << "> Enter author of book: ";
getline(cin, Author); // but this work!?
...
and then waiting for something to write!> Enter book title: > Enter author of book:
I don't know what's wrong?