Hi guys, here i am again with a problem.
i am having a problem with std::getline. In my program, it made no compile time errors, but when i run it, all it do is skip over the actual line, and run whats on the next line.
and btw, can someone tell me if they know a good free cpp debugger.
Sounds like you've done
cin >> someVar;
then followed it with a getline()
I suppose this is where you would use something like
There are many examples of it's usage on the board.
Of course, the better answer would be to always use getline to read input into a string, then perform whatever validation and conversion was appropriate on that string.
this wont work out smoothly...
As suggested, POST CODE:)
What compiler are you using? Most compiler packages come with a suitable debugger.
Originally Posted by _lazycat_
You can get Visual Studio 2005 for free from Microsoft, which comes with a good debugger. Or if you want a Free Software model debugger, gdb is an option.