Is there any difference in C++ between global variable/const and global static variable/const? Declared in cpp file or a header file.
static const int x1 = someFunction(5);
const int x2 = someFunction(6);
static int x3 = someFunction(5);
int x4 = someFunction(6);
int main()
{
...
Aucun commentaire:
Enregistrer un commentaire