| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 588 人关注过本帖
标题:帮忙解释下,万谢
取消只看楼主 加入收藏
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
快速回复:帮忙解释下,万谢
数据加载中...
 
   



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

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