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
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 <-- that's a sarcasm smileyOriginally Posted by Thantos
Last edited by major_small; 02-21-2005 at 01:28 AM. Reason: sarcasm made obvious
Join is in our Unofficial Cprog IRC channel
Server: irc.phoenixradio.org
Channel: #Tech
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
52 Members so far, are YOU a member?
Current team score: 1223226 (ranked 374 of 45152)
The CBoard team is doing better than 99.16% of the other teams
Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)
Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT