I have a class declared in a .cpp file, and the structure written in a .h file, in order to use the class in other .cpp files
Example :
    //class1.cpp                    //class1.h
    class class1                    class class1
    {                               {
     private:                        private:
        double X;                       double X;
        ...                             ...
     public:                         public:
        double getX(){return X;}        double getX();
        ...                             ...
    };                              };
Class2 will include "class1.h", thus allowing me to use class1, but only within new class, class2.
What I want :
    include "class1.h"
    class1 c;
    class class2{/* ... */};
Is it possible, and if so how would one go about, to declare a global object of type class1 in the class2.cpp?
 
    