I'm coding a basic student data read/write system. At the moment this won't have any file I/O, so it is pretty basic. I'm having an issue with the structure of the program however. I want to declare a vector of classes so that I can push and remove data at will, and access each class with ease.
As you can see, I'm still working out some of the details. But at the moment I'm coming up on an odd problem. How do I access the vector outside of main()? Since I can't declare vector<studentData> globally, is there a way to push_back, read and write the class data in other functions?