fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <stdint.h>
  4.  
  5. class Node
  6. {
  7. public:
  8.  
  9. Node() {}
  10. virtual ~Node() {}
  11.  
  12. protected:
  13. std::string m_name;
  14. };
  15.  
  16. class xyz : public Node
  17. {
  18. public:
  19. xyz( uint8_t node) {}
  20.  
  21. private:
  22. uint8_t m_node;
  23. uint16_t m_gainxyz;
  24. };
  25.  
  26. xyz Initxyz(Node)
  27. {
  28. return xyz(42);
  29. }
  30. int main()
  31. {
  32. Node node;
  33. xyz xyz = Initxyz(node);
  34. }
  35.  
Success #stdin #stdout 0s 3092KB
stdin
Standard input is empty
stdout
Standard output is empty