cout << "Please select which option you want to select\n"
<< "1. Create Bill\n";
}
int main(){
Bill b;
int option;
do{
printMenu();
cin >> option;
switch(option)
{
case 1:
b.generateBill();
break;
}
}while(option != 5);
cin.get();
cin.ignore(1,'\n');
return 0;
}
复制代码
我不可以用 Doctor 和 Patient class 来做一个variable,请问是哪里出问题了?
Output Error
In function `Bill::Bill(float, float, float, float)':
undefined reference to `Doctor:octor(std::string, std::string)'
In function `Bill::Bill(float, float, float, float)':
undefined reference to `Doctor:octor(std::string, std::string)'作者: 独爱苹果 时间: 2013-7-4 09:41 AM 本帖最后由 独爱苹果 于 2013-7-4 09:42 AM 编辑