#so i made a nullpointer class variable then a local variable with the same name in the constructor that immediately disappeared
Explore tagged Tumblr posts
Text
ARAH I FOUND THE STUPID ERROR!!!
#tütensuppe#so if you define your class variables in your header file. and then assign them values in the main file. you HAVE to use only the name#if you put type definition as well. youre instead making a local variable. that goes poof as soon as you leave the method.#so i made a nullpointer class variable then a local variable with the same name in the constructor that immediately disappeared#and then got confused that no matter what i did the object kept passing a nullpointer......#basically: me being incompetent at c++#i can finalize this project next week wehu
0 notes