how come when i use getline in the following form:

Code:
getline(cin,szInput,'\n');
i have to press enter twice, once for the getline function
to stop and one to return to the next line....

i want it so that i press it once, it ends the function and
returns to the next line

anyone have any ideas?
thx in advance