Suggest you use std::vector instead of raw arrays. It will keep track of the bounds for you and throw an exception if you try to access a non-existent element.
Printable View
Suggest you use std::vector instead of raw arrays. It will keep track of the bounds for you and throw an exception if you try to access a non-existent element.