Index: [thread] [date] [subject] [author]
  From: Philip K. Warren <pkw@acpub.duke.edu>
  To  : 
  Date: Sat, 30 Jan 1999 11:59:38 -0500

Re: Stack

At the top of your file, make sure that you have included:
#include <stack>
#include <string>

and then to declare it use:
stack<string> myOpStack;

-- philip

Yueyi Liu wrote:
> 
> I am having trouble implementing a Stack.  It keeps telling my that the line
> 
>  Stack<string> myOpStack;
> 
> has a syntax error.  I also tried "stack" instead of "Stack", and it
> didn't help.  It works after I used a Makefile from CPS100e which links
> to the CPS tapestry libraries.  I wonder if the stack.h class is any
> different from the class we used in CPS100e.
> 
> Since we are not supposed to use the CPS tapestry libraries, I hope to
> have a look at the stack.h file to figure out exactly what is wrong.
> Where can I find it?
> 
> Thanks!


Index: [thread] [date] [subject] [author]