Random extra characters printed to terminal that I did not type

So I was working on the c++ game TripleX and was inserting some ASCII art at the end to make it look nice but when I ran it to test in terminal it was inserting some extra random characters and I don’t know where they came from. Any help is appreciated.

It’s been a long time since I’ve worked with C++, but that reminds me of a string that isn’t properly null terminated. What’s happening is it’s printing out from that memory location, but sliding on past in to memory beyond your string and in to the next memory addresses until it finds a \0.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms