Program5/packetQueue.cpp
Link packetQueue::getNextEvent(Link *aPtr){
	Link tempPtr;
	tempPtr = *aPtr;
	aPtr = (&(*aPtr)->next);
	tempPtr->setNext(NULL);
	return tempPtr;
}
//Returns the next event, provided a starting location.
Returns the next event, provided a starting location.
Returns the next event provided a starting location .
Link packetQueue::getNextEvent(Link *aPtr){
	Link tempPtr;
	tempPtr = *aPtr;
	aPtr = (&(*aPtr)->next);
	tempPtr->setNext(NULL);
	return tempPtr;
}
Link packetQueue :: getNextEvent ( Link * aPtr ) { Link tempPtr ; tempPtr = * aPtr ; aPtr = ( & ( * aPtr ) -> next ) ; tempPtr -> setNext ( NULL ) ; return tempPtr ; }
Returns the next event, provided a starting location.
Returns the next event provided a starting location .