Ok this is a strange question that CyberCartsen and I have been discussing and we have not figured it out. I was wonder if some one else knew this. Or if anyone else even does these types of VARs.
Its about VARs that are not local, and not really global. Example:
a .h file
a .cpp filePHP Code:...
extern int GlobalVar;
void whateverfunction();
...
Ok now GlobalVar is of course a Global VAR through out your program. LocalVar is of course a Local VAR in that function. So what is notreallyGlobal called since it is only Global in that cpp? Is it still called Global?PHP Code:...
int GlobalVar;
int notreallyGlobal; //This is VAR at hand
void whateverfunction()
{
int LocalVar;
}
...




Reply With Quote