标题:求教:提示头文件开头位置中缺少“;”是为什么?
取消只看楼主
mason
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2008-9-28
 问题点数:0 回复次数:0 
求教:提示头文件开头位置中缺少“;”是为什么?
#ifndef Golf_H_
#define Golf_H_

const int Len=40;
struct golf
{
    char fullname[Len];
    int handicap;
};

void setgolf(golf & g,const char * name,int hc);

int setgolf(golf & g);

void handicap(golf & g,int hc);

void showgolf(const golf & g);

#endif

编译时总是说:syntax error : missing ';' before 'const'

这是为什么?
搜索更多相关主题的帖子: 提示 文件 位置 
2008-09-28 21:04



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




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

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