| ||||||||||
| 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 | |||||||||
Re:谁能告诉我为什么是rtine error?In Reply To:谁能告诉我为什么是rtine error? Posted by:dlut_student_a at 2007-05-25 20:54:50 > #include<stdio.h>
> void main()
> {
> float a[12],b=0;
> int i;
> for(i=0;i<12;i++)
> scanf("%f",a[i]);这行错了,a[i]前要取地址符
> for(i=0;i<12;i++)
> b=b+a[i];
> printf("%.2f",b/12);
> }
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator