Re: input strings


[ Follow Ups ] [ Post Followup ] [ CS2604 Discussion WWWBoard ] [ FAQ ]

Posted by hussein on July 20, 1999 at 18:56:55:

In Reply to: input strings posted by Steve on July 20, 1999 at 17:15:39:

: how can i allow for a string with whitespace to be entered by the user, ie for a window name?
: or do we not even have to worry about that?
: if they put spaces, only the first word will be accepted correctly.
: thank you.

presuming that you are using iostream, use the "getline" method in the "istream" class in order to input a whole line with whitespaces ...

---

hussein


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2604 Discussion WWWBoard ] [ FAQ ]