12.07.2015 Views

C++ - VideoTutorials-bg.com

C++ - VideoTutorials-bg.com

C++ - VideoTutorials-bg.com

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

copy(r);}return *this;}template void stack::delstack(){elem *p;while (start){p = start;start = start->link;delete p;}}template void stack::copy(stack const & r){if (r.start){elem *p = r.start, *q = NULL, *s=NULL;start = new elem;start->inf = p->inf;start->link = q;q = start;p = p->link;while (p){s = new elem;s->inf = p->inf;q->link = s;q = s;p = p->link;}q->link = NULL;}else start = NULL;}template void stack::push(T const& s){elem *p = start;start = new elem;start->inf = s;96

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!