help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [G++ n00b] getche() in G++ ?


From: Stefan Kristensen
Subject: Re: [G++ n00b] getche() in G++ ?
Date: Fri, 02 Nov 2007 11:24:08 +0100
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)

I use fgets() to read a string, but don't want to pertain the newline charcter. In the old days, I used flushall(), but that doesn't seem to be valid either. What do I do here?

Seems like checking the last char for '\n' and replacing it with '\0' is the way to go.

Thank you very much for your help :-)

Stefan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]