I'm having trouble with structures and classes in C++
0 07 May 2017 13:23 by u/Rainy-Day-Dream
at line 79 it's giving me: "[Error] 'newStudent' was not declared in this scope" and I'm not really sure what to do, I've been looking up stuff and watching tutorials but could someone please explain what I'm doing wrong?
1 comment
1 u/kevf4 07 May 2017 14:20
Looks like you are using a dot operator on line 79 where it should be the scope operator. Dot operator applies to a local instance, while scope operator applies to global namespaces.
Protip: don't use nested classes or structs until you have a bit more experience.