i'me getting the error in xcode Undefined symbols for architecture x86_64: "Restaurant::Restaurant()", referenced from: _main in main.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
This is my code:
#include <iostream>
using namespace std;
class Restaurant
{
public:
Restaurant();
int getTables();
int getTempStaff();
int getPermStaff();
string getShifts();
string getMenu(string menu);
private:
string Menu;
int Tables;
int TempStaff;
int PermStaff;
string Shifts[3];
};
string Restaurant::getMenu(string menu)
{
Menu = menu;
return menu;
}
int main()
{
Restaurant mimmos;
string Menu;
cout<<"Menu: ";
cin>>Menu;
cout<<mimmos.getMenu(Menu);
return 0;
}
Please help.