#: 20875 S3/Languages
28-Mar-95 09:09:05
Sb: #20869-scanf() question
Fm: Jost Eberbach 73502,2041
To: Bob van der Poel 76510,2203 (X)
Bob,
I don't like the scanf() function either, but sometimes it's very useful.
When I used it the first time, I confused the meaning of the control string
with that in the printf() function. Well, for the scanf() function, the control
string only indicates the type of variable your scanning in, not the printable
format. You can't use the \n or other control sequences. The big disadvantage
of scanf() is, that it returns only when the user hits the ENTER key. You can't
scan for single characters.
Jost
|