fork download
  1. class Zlib_init
  2. {
  3. public:
  4. Zlib_init(){} //get Zlib ready for use
  5. ~Zlib_init(){} //clean up after Zlib
  6. public:
  7. int j;
  8. };
  9. class Zlib
  10. {
  11. public:
  12. static Zlib_init x;
  13.  
  14. };
  15.  
  16. Zlib_init Zlib::x;
  17.  
  18. int main()
  19. {
  20. Zlib::x.j = 10;
  21.  
  22. return 0;
  23. }
  24.  
  25.  
Success #stdin #stdout 0.01s 2676KB
stdin
Standard input is empty
stdout
Standard output is empty