![]() |
#2
maillane2008-09-28 22:18
|
#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'
这是为什么?