#include "plist.h"

int main(void)
{
	Process *PPtr;
	PList plist;

		PPtr = new Process("p1.txt");
		plist.Insert(PPtr);
	
		PPtr = new Process("p2.txt");
		plist.Insert(PPtr);

		PPtr = new Process("p3.txt");
		plist.Insert(PPtr);

	plist.Display();
	
cout << endl;

	PPtr = plist.Remove(2);
	if(PPtr !=NULL)
		PPtr->Display();
	delete PPtr;

	plist.Display();

}

