C/C++
bookshlf.asc
Associated article: Libraries and "the One Right Way"
Tags: C/C++
_PROGRAMMER'S BOOKSHELF_
by Andrew Schulman
Example 1: A stack template in C++ 3.0
// stack.h
template<class T> class stack
{
T *v, *p;
int sz;
public:
// all the following functions are inline
stack(int s) { v = p = new T[sz = ...


