64,649
社区成员
发帖
与我相关
我的任务
分享
#ifndef TABLE_H
#define TABLE_H
#include <string>
using namespace std;
class table
{
private:
string firstname;
string lastname;
bool hasTable;
public:
table(const string &fn = "none", const string &la = "none", bool ht = false);
void show()const;
bool HasTable()const{return hasTable;}; //此处加了分号?
};
class copy_talbe: public table
{
private:
int rating;
public:
copy_table(int r=0, const string &fn="none", const string &ln="none", bool ht = false);
copy_table(int r, table &p);
int get_rating()const{return rating} //此处没有加分号?
};
int get_rating()const{return rating;}
括号内掉了一个分号