cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
[code]while ( scanf ("%lf ",&tem data) =
[code]while ( scanf ("%lf ",&tem data) == 1)[/code]
Nov 11, 2012 at 11:25am UTC
NoobMathe
(4)
while
( scanf (
"%lf "
,&tem_data) == 1)
I dont understand what this part of code means :( Help
Last edited on
Nov 11, 2012 at 11:25am UTC
Nov 11, 2012 at 11:40am UTC
TheIdeasMan
(6817)
scanf returns a value that represents the number values read correctly. This code tests that the scanf worked properly.
Topic archived. No new replies allowed.