I'm trying to throw an overflow exception:
Code:void Stack::push(char c) { if(top == max_size) throw Overflow(); }
but I can't find the right header in visual C++ express 2010. Is it #include <stack> ? I'm trying this and it still won't compile.
I'm trying to throw an overflow exception:
Code:void Stack::push(char c) { if(top == max_size) throw Overflow(); }
but I can't find the right header in visual C++ express 2010. Is it #include <stack> ? I'm trying this and it still won't compile.