hm, somehow you missed something in your c++ course
remove that pLL variable ... in the methods of that class ( that are the fucntions of a class ) you can access its variables directly. your solution works fine for one instance of that class, but you'll get into trouble once you wanna have more of them
PS: deleting isnt permitted in this forums

just edit it if you like to