R
Rahul
Hi Everyone,
I have a class having a static member variable in a header file.
File.h
class india
{
public:
static int a;
};
File1.cpp
#include "file.h"
int india::a = 5;
Now i want to access the same static member variable in another file
File2.cpp, what is the best possible way to do so?
Thanks in advance ! ! !
I have a class having a static member variable in a header file.
File.h
class india
{
public:
static int a;
};
File1.cpp
#include "file.h"
int india::a = 5;
Now i want to access the same static member variable in another file
File2.cpp, what is the best possible way to do so?
Thanks in advance ! ! !