View Single Post
Old May 24th, 2006, 12:57 PM   #27
Mack1982
Programmer
 
Join Date: Dec 2004
Posts: 34
Rep Power: 0 Mack1982 is on a distinguished road
Ok the final part of the project which is a little trouble some,..

lets say that the following is the way a MAIN looks:
#include<iostream>
#include "employee.h" 
#include "List.h" //a link list class
Now lets say i make a list object called "MyList"
list myList();
How do i add five employee objects to the list
the list has the following functions:
class List
{
	Node* first;
	int count;
public:
	List();
	bool insert(Employee& s);	
	int size();
	void display();
	Employee& operator[](int n);
~List();
	
};
]
I tried searching the book,.. but couldn't find an example,..
Thanks
Mack1982 is offline   Reply With Quote