queuetools

queuetools - template<typename U> class Queue...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/** @file queuetools.h @author your name @date 2005-11-15 Description: linked-list-based queue auxilliary functions interface. Course: CS1254.02 Logon ID: cs1254xx Lab #: 6 Instructor: William Duncan */ #ifndef QUEUETOOLS_H #define QUEUETOOLS_H #include <iostream> #include <cassert> using namespace std; /* Forward declaration */
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: template <typename U> class Queue; template <typename T> class Node { public: /* Constructs a node with a given data value. @param s the data to store in this node */ Node<T>(T s); private: T data; Node<T>* next; template <typename U> friend class Queue; }; #endif //end of QUEUETOOLS_H...
View Full Document

This note was uploaded on 01/17/2012 for the course CSC 1254 taught by Professor Blanks,l during the Fall '08 term at LSU.

Ask a homework question - tutors are online