class LineNumberRange {
public:
lineNumberRange(int start, int finish) : Start(start), Finish(finish) {} //[BCC32 Error] unit1.h(40): E2040 Declaration terminated incorrectly
bool Inside(int line) const {
return (line >= Start && line <= Finish);
}
public:
int Start;
int Finish;
};
ошибка синтаксиса
Код:
объясните в чем ошибка и что за синтаксис такой
Код:
class LineNumberRange {
public:
[color=red]L[/color]ineNumberRange(int start, int finish) : Start(start), Finish(finish) {}
bool Inside(int line) const {
return (line >= Start && line <= Finish);
}
public:
int Start;
int Finish;
};
public:
[color=red]L[/color]ineNumberRange(int start, int finish) : Start(start), Finish(finish) {}
bool Inside(int line) const {
return (line >= Start && line <= Finish);
}
public:
int Start;
int Finish;
};