All pastes #467044 Raw Edit

Mine

public text v1 · immutable
·published 2007-05-02 08:45 UTC
rendered paste body
#include <iostream>
#include <list>

using namespace std;

class Customer{
	public:
		int age;
		int results;

};

class Coworker{
	public:
		list <Customer*> custli;
};

class Holding{
	public: 
		list <Coworker*> workerli;
};

int main(){
	Holding somecompany;
	Coworker irene;
	Customer paul;

	somecompany.workerli.push_front(&irene);
	irene.custli.push_front(&paul);
	
	return 0;
}