NEVER MIND
I have a method that simply returns a value from array of ints 'a' from the wanted element e. However, this is making a Segmentation fault error. It is not because of the array, I tested it with a regular int. I believe it has something to do with the const, and it needs to be there. What am I doing wrong?
There is not enough here for me to tell you what the problem is. The const qualifier indicates to me this is a method, correct? And 'a' is a member of the class?
In any case, suppose 'e' is out of bounds of the array. Wouldn't that cause a segfault?