TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: Bob van der Poel 76510,2203 (X)
from: Jost Eberbach 73502,2041
date: 1995-03-28 09:09:05
subject: #20869-scanf() question

#: 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

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.