I'm having trouble passing variables with pointers

This is a discussion on I'm having trouble passing variables with pointers within the C++ Programming forums, part of the General Programming Boards category; This seemed easy enough to do, but it doesn't work. It compiles but it does not actually switch the values, ...

I'm having trouble passing variables with pointers

This seemed easy enough to do, but it doesn't work. It compiles but it does not actually switch the values, and it gives me a "debug assertion error" and THEN it crashes, so be warned before you try running this