String input Problems

I've noticed lately I've been having lots of problems with string. I use a lot but it usually ignores the first word of the string I type in. If I try to output a string variable after setting its value in the program, All that outputs is a whitespace. When I add certain functions like cin.ignore(256,'\n'); attempting to solve the problem, nothing changes. Can anyone tell me if theirs something wrong with my getline function

getline(cin,stringname);

or is their a more common problem that I'm unaware of?
The common pitfall is mixing cin >> x; and getline(cin,x); but that can be solved with ignore(). So generally that's it. There might by specific problems in your code, but without seeing them...
Topic archived. No new replies allowed.