Actually how to do it? Language - C ++. Preferably with an example, for a better understanding. Thank you in advance!
For example:
In the var.h file:
var.h
extern int variable;
In the var.cpp file:
var.cpp
int variable;
In any other file, include var.h and use variable .
variable
Source: https://ru.stackoverflow.com/questions/633882/More articles:TestNG: testng doesn't support the “mode” attributeHow are numbers stored in BigInteger?Features of global variables [closed]creating a class card and deckThymeleaf: How not to generate on the html page the contents of tags to which null is passedWhat to do if you need access to a variable that is initialized in another class, and you cannot create an instance of that class? id = id_user how to write ajax request correctly?c ++ / c Need help [closed]Fragment Management with ViewPager in NavigationDrawerData transfer between server and clientAll Articles