For a proper header file you should not include a bunch of files you do not need. Only add them if you cant forward declare a class and prefer having the include in the cpp file, but minimize these, too.
And use descriptive names where you dont need to guess if, for example, loc is location (cant be, a string location is weird?), lines of code(uhh no, why?) or something else.
It would be good to learn about how to use const references and the constructor initializer list, to see how these prevent useless copying.
Try following the "tell, dont ask" principle and only add get/set methods if you cant replace them by methods that do the real work inside the class. The remaining one-line-methods could then be put into the header so they can be inlined.
Not sure how I just saw this but thanks a bunch! I haven't got to anything const related in class yet (which seems a bit odd). I'll open the bible and read a bit.
Cheers!