|  | Home · All Namespaces · All Classes · Main Classes · Grouped Classes · Modules · Functions |

# globals.cpp Example File
xmlpatterns/xquery/globalVariables/globals.cpp

     int mutablePrimitive1;
     int mutablePrimitive2;
     const int constPrimitive1 = 4;
     const int constPrimitive2 = 3;

     class ComplexClass
     {
     public:
         ComplexClass();
         ComplexClass(const ComplexClass &);
         ~ComplexClass();
     };

     ComplexClass mutableComplex1;
     ComplexClass mutableComplex2;
     const ComplexClass constComplex1;
     const ComplexClass constComplex2;

     int main()
     {
         int localVariable;
         localVariable = 0;
         return localVariable;
     }