It's my first post here and I would like to apologize in advance for the likelihood of it being of little use to anyone else (I will try and rectify that in future questions).
I've been trying to pick up on C++ just through reading and finally decided to have a STL-free attempt at what should eventually be a simple ASCII Cannon game.
I've defined a class Cannon and a class Map as follows:
The Map construction seems to work fine as I can display a Map with no problems. Also, calling test_map.setChar(some int, some int, some char) also works.
Debugging gives me the idea that the problem appears when calling setChar through the Cannon construction sequence.
Anyhow, help would be greatly appreciated. Also, any suggestions regarding general program layout are also very welcome.
I find that it is more intuitive for me to "draw" things onto the array if the origin is at the bottom left, hence the (failed) attempt at inverting it. I completely overlooked that detail.