正在加载图片...
The C Programming Language Chapter 4 Input and Output Notice When uses %c", blanks and escape characters are valid input An input field extends to the next white space character a如scan(%c%oc%c”,&cl,c2,RC3) e若输入abe 则a→c1,→C2,b→c3 tn scanf(%d%c%f, &a, &b, &c) 若输入1234a1230.26 则1234→a.a3→b.123→cThe C Programming Language Chapter 4 Input and Output Notice: • When uses “%c”,blanks and escape characters are valid input. 如 scanf(“%c%c%c”,&c1,&c2,&c3); 若输入a b c 则ac1, c2, b c3 •An input field extends to the next white space character (blank , tab , newline …) ,or invalid input or until the field width, is exhausted. 如 scanf(“%d%c%f”,&a,&b,&c); 若输入1234a123o.26  则 1234 a, ‘a’ b, 123 c
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有