Program5/packetQueue.cpp
Link packetQueue::getNextEvent(){
	Link tempPtr;
	tempPtr = sPtr;
	sPtr = (sPtr)->getNext();
	tempPtr->setNext(NULL);
	return tempPtr;
}
//Takes the first event in the list, removing it from the linkedlist entirely, and returns that event.
Takes the first event in the list, removing it from the linkedlist entirely, and returns that event.
Takes the first event in the list removing it from the linkedlist entirely and returns that event .
Link packetQueue::getNextEvent(){
	Link tempPtr;
	tempPtr = sPtr;
	sPtr = (sPtr)->getNext();
	tempPtr->setNext(NULL);
	return tempPtr;
}
Link packetQueue :: getNextEvent ( ) { Link tempPtr ; tempPtr = sPtr ; sPtr = ( sPtr ) -> getNext ( ) ; tempPtr -> setNext ( NULL ) ; return tempPtr ; }
Takes the first event in the list, removing it from the linkedlist entirely, and returns that event.
Takes the first event in the list removing it from the linkedlist entirely and returns that event .