Hi,

I have two classes, each having its own header and implementation files. I'm trying to use one object in another object, but I'm constantly getting this error. Any suggestions? thanks

actual error
Code:
Error C2079: 'Waiter::curentTable' uses undefined class 'Table'

waiter.h
Code:
#ifndef WAITER_H
#define WAITER_H

#include <string>
#include "Table.h"

using namespace std;

class Waiter{
public:
	Waiter();
	string getID();
private:
	Table currentTable;
	string ID;
};

#endif
waiter.cpp
Code:
#include <iostream>
#include <string>
#include "Waiter.h"

Waiter::Waiter(){}

string Waiter::getID(){
	return ID;		
}

table.h
Code:
#ifndef TABLE_H
#define TABLE_H

#include <string>
#include "Waiter.h"

using namespace std;

class Table{
public:
	void assignWaiterToTable(Waiter waiter);
	string myWaiter();

private:
	string id;
	string waiterID;
};

#endif


table.cpp
Code:
#include <iostream>
#include <string>
#include "Table.h"

using namespace std;

void Table::assignWaiterToTable(Waiter waiter)
{
	waiterID = waiter.getID();
}

string Table::myWaiter(){
	return waiterID;
}