Im writing a program where i want it to keep getting input untill a blank line is entered... im using getline(), im not sure on how to check if a blank line has been entered
if anyone knows i would greatly apreciate the help. thanks :)
Printable View
Im writing a program where i want it to keep getting input untill a blank line is entered... im using getline(), im not sure on how to check if a blank line has been entered
if anyone knows i would greatly apreciate the help. thanks :)
Well lets see:
1) Read Line
2) If the only character read in is the newline jump to step 4
3) Else jump to step 1
4) Jump for joy
Thantos made me giggle with glee.
nevermind i figured it out, im new to programing, i decided not to use getline() and my while statement now works with detecting a new line
please don't advocate the use of goto :D <-- that's a sarcasm smileyQuote:
Originally Posted by Thantos