Skip to content

Instantly share code, notes, and snippets.

@rchatsiri
Created October 6, 2010 16:40
Show Gist options
  • Save rchatsiri/613643 to your computer and use it in GitHub Desktop.
Save rchatsiri/613643 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <istream>
#include <ostream>
#include <string>
#include "Stack.cpp"
#include "boost/shared_ptr.hpp"
int main(int argc, char* argv[])
{
boost::shared_ptr<Stack<int> > stack_ptr(new Stack<int>);
stack_ptr->push(1);
stack_ptr->push(2);
std::cout<<"POP STACK : "<<stack_ptr->pop()<<std::endl;
std::cout<<"TOP STACK : "<<stack_ptr->top()<<std::endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment