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

Re:谁能告诉我为什么是rtine error?

Posted by flyingpengfei at 2007-05-27 11:41:16 on Problem 1004
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:
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