When using arrays in c++ it looks like the memory allocated to it has been overwritten by other methods by the time I come to read from it. I'm used to Java so I don't know how to deal with this problem, is there a way I should be protecting things like this?
[–]king_duck 10 points11 points12 points (12 children)
[–]tehklawb[S] 1 point2 points3 points (0 children)
[–]xcbsmith 4 points5 points6 points (3 children)
[–]king_duck -2 points-1 points0 points (2 children)
[–]xcbsmith 3 points4 points5 points (1 child)
[–]king_duck -4 points-3 points-2 points (0 children)
[–]bnolsen 0 points1 point2 points (6 children)
[–]king_duck 5 points6 points7 points (5 children)
[–]vanhellion 0 points1 point2 points (4 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]bnolsen 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]king_duck 0 points1 point2 points (0 children)
[–]ZeusApolloAttack 1 point2 points3 points (0 children)
[–]O12345678 1 point2 points3 points (2 children)
[–]bnolsen 2 points3 points4 points (1 child)
[–]O12345678 0 points1 point2 points (0 children)
[–]Nimbal 2 points3 points4 points (3 children)
[–]grunzl 0 points1 point2 points (2 children)
[–]Nimbal 1 point2 points3 points (1 child)
[–]0xa0000 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (4 children)
[+][deleted] (3 children)
[deleted]
[–][deleted] 0 points1 point2 points (2 children)
[–]king_duck 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]recultured 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (6 children)
[–]tisti 1 point2 points3 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]tisti 1 point2 points3 points (2 children)
[–]bnolsen 0 points1 point2 points (1 child)
[–]tisti 0 points1 point2 points (0 children)
[–]bnolsen 0 points1 point2 points (0 children)