Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

你输出了不应该输出的东西

Posted by crazyBIRD at 2006-07-16 16:21:40
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator