Is this sort of thing possible? Suppose I have 100 some variables in a file, if I were to put these in a .cpp or a .h file and link it with the main file, they would be global (right??).
I was wondering if there was a way to make them local to the main function inside the main file.
Or what's an alternative (like using file reading from a text file instead of .cpp and .h or using namespaces or whatever).
Cheers!