if you are using system("something"); getline()won't work. donno why, but it's not working, and it's not the only problem system("something") is causing. try it after you remove system("something")
try using _getch(); from conio.h instead of system("pause");
erm, i dont mean to hijack the thread but i tried to use getline with the exact formatting you guys gave in a program, it DOESN'T use system, but it still didn't work, it didn't ask for the input at all, it just skipped over it and said Query is empty (its an sql program)