You can access public variables from a class just as you would the member functions, eg:
Code:
readStraitsTimesIndex test;
std::cout << test.value << std::endl;
However, generally speaking, variables in an object oriented program should be private to their classes. Instead, one implements member functions that return the information that you require in another class.
This may begin by being as simple as a function that returns the value. But by having a function, the implementation can be changed over time without changing the outside interaction with the class.
If you find you have a lot of these 'global' variables, then you have probably not understood object oriented design.