fork download
  1. #include <iostream>
  2. using namespace std;
  3. struct Object{};
  4.  
  5. Object* create_func()
  6. {
  7. Object* temp;
  8. return temp;
  9. }
  10.  
  11. struct SFactory
  12. {
  13. const char *_ID;
  14. Object *(*_CreateFunc)();
  15. };
  16.  
  17. static SFactory regB = {"Object1", create_func};
  18.  
  19. int main(int argc, char * argv[])
  20. {
  21.  
  22. }
  23.  
Success #stdin #stdout 0.01s 5416KB
stdin
Standard input is empty
stdout
Standard output is empty