queuetools - template <typename U>...

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 &lt;typename U&gt; class Queue; template &lt;typename T&gt; class Node { public: /* Constructs a node with a given data value. @param s the data to store in this node */ Node&lt;T&gt;(T s); private: T data; Node&lt;T&gt;* next; template &lt;typename U&gt; friend class Queue; }; #endif //end of QUEUETOOLS_H...
View Full Document

Ask a homework question - tutors are online