标题:帮忙解释下,万谢
取消只看楼主
a132266
Rank: 2
等 级:论坛游民
帖 子:86
专家分:20
注 册:2015-3-26
结帖率:66.67%
 问题点数:0 回复次数:0 
帮忙解释下,万谢
#include<stdio.h>
#define SIZE 10
#define PAP  72
int main(void)
{
   
   
    int index, score[SIZE];
    int sum = 0;
    float average ;
   
    printf("Enter %d golf scores: \n",SIZE);
    for (index = 0; index < SIZE ; index++)     //     int index, score[SIZE];      
    scanf("%d",&score[index]);                  //    scanf("%d",&score[index]);  这里 score[10]  然后 scanf 取地址了 10个 index吗  感觉上应该是10个score啊         
    printf("The scores read in are as followa: \n");
    for(index = 0; index < SIZE; index++)
    printf("%5d",score[index]);
    printf("\n");
}
搜索更多相关主题的帖子: average include scores Enter 
2015-04-07 00:37



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-443635-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.073712 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved