> int foo(vector<int>& stack)
> {
> int x = stack.back();
> stack.pop_back();
> }
>
> For reasons I can't begin to understand,
>
> 1. This doesn't produce any compile-time error.
What compiler are you using?
If it's possible for you to acquire a copy of Visual Studio (even an oldish
one), I strongly recommend it.
- Slime
[ http://www.slimeland.com/ ]
Post a reply to this message
|