void QueType::Print(std::ostream& out) const { out << "[ "; if (rear != NULL ) { NodeType* tempPtr = rear->next; out << tempPtr->info << ' '; while ( tempPtr != rear ) { tempPtr = tempPtr->next; out << tempPtr->info << ' '; } } out << "]" << std::endl; }