class point{
public:
inline int& gett(void);
inline int& getw(void);
inline void scan(void);
inline bool operator<(const point&)const;
private:
int t,w;
void ckmax(int&,const int&);
};
inline void point::scan(void){
get(this->t),get(this->w);
this->ckmax(mx,t);
return;
};
inline bool point::operator<(const point &a)const{
return this->t>a.gett();
};
inline void point::ckmax(int &x,const int &y){
if(x<y)x=y;
return;
};
inline int& point::gett(void){
return this->t;
};
inline int& point::getw(void){
return this->w;
};
在operator<函数中由于return被编译器阻止,应该怎么办