In FORTRAN, we can have a common data block in which all exchanging
data are stored. When a subroutine/function needs data from the data block,
it can automatically get them from the data block if the program found
data with the same variable name.
In C++, I am wondering how we use a class doing the same
thing like what we do in FORTRAN?
A simple practical example will be highly appreciated.