| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
你输出了不应该输出的东西In Reply To:为什么不可以 Posted by:19205218 at 2006-07-16 15:28:05 > [code]我刚学编写程序,但是这种现象不是很明白
> #include <stdio.h>
> #include <math.h>
> int main()
> {int average;
> printf("请输入12个数:\n");
> scanf("%5.2f");
> while(EOF!=scanf("%5.2f"))
>
> printf("%5.1\n",average);
> return 0;
> }
> 运行之后是错误的
> [/code]
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator