Can someone tell me what is wrong with this code? It seems pretty straight forward. I'm just accessing a private variable through public functions but on line '19' there is an error.
Try getting rid of line 3, it's a bad idea to bring an namespace into a header file, and it is a bad idea to bring in entire namspaces generally. Put std:: before each std thing. As in std::cout or std::endl
When yo type std::st into your ide it should give you a list of things to select from, thus avoiding typos like this one.