I can't seem to find a definitive answer on this, and everything I am trying is not compiling.
EDIT: I have been experimenting with C++ classes, and I noticed my classes will only compile if they are declared globally (i.e. outside of main()) Why is this?
I am only familiar with C, and am just starting to learn some of C++.
EDIT: I have been experimenting with C++ classes, and I noticed my classes will only compile if they are declared globally (i.e. outside of main()) Why is this?
I am only familiar with C, and am just starting to learn some of C++.