Some knowledge about the scanf

10.22, on the stage already know some uses of scanf or considerations of some of the summary:

In 1.scanf, the front of the data plus the assignment of certain &!

2. If the input scenario requirements must be space, scanf ( "% d% c% d", & a, & ch, & b)

Note that you must not have spaces, can not describe the specific reasons ,, simply described as a multi lost data.

3. In the scanf ( "... \ n", & a) this statement, pay attention, \ n must not appear in the scanf statement!

Guess you like

Origin www.cnblogs.com/advsd/p/11722475.html