How can I declare a public variable in C++ (without MFC) and so that I can share this variable in two different cpp file.

example:
I have 2 variable name ptX and ptY both are double data type.
I need to store a value at runtime into this variable at a.cpp and use this value in b.cpp.

Thanks,
Chris.C