正在加载图片...
The C Programming language Chapter 4 Input and Output 4.3 Formatted Input -- Scanf scanf(char *format, argl, arg2,..) reads characters according to the specification in format, and stores the results through the remaining arguments(must be pointers) ⑧例scan(%oda);例scan(xa) 输入:10, 输入:11 则a=10 则a=17 Notice argl, arg2,.., use address operator Conversion specifications: d,o, x,u, c, S, f, eThe C Programming Language Chapter 4 Input and Output 4.3 Formatted Input --- Scanf ➢ scanf(char *format, arg1,arg2, ...) ➢ reads characters according to the specification in format,and stores the results through the remaining arguments(must be pointers) Notice : ▪ arg1,arg2, ... ,use address operator & ▪ Conversion specifications: d,o,x,u,c,s,f,e 例 scanf(“%d”,&a); 输入:10  则 a=10 例 scanf(“%x”,&a); 输入:11  则 a=17
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有