'No operator "[]" matches these operands error

I'm trying to output a degree program for each student depending on their current degree and get an error line under the brackets. I've checked my code and headers and it all looks good. Any help would be awesome!

cout << degreeProgramStrings[this->getDegreeProgram()];


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source