fork download
  1. #include <iostream>
  2.  
  3. #define RGB(r, g ,b) \
  4.   ((DWORD) (((BYTE) (r) | \
  5.   ((WORD) (g) << 8)) | \
  6.   (((DWORD) (BYTE) (b)) << 16)))
  7.  
  8. namespace shell {
  9.  
  10. struct Command
  11. {
  12. virtual ~Command() {}
  13. };
  14. }
  15.  
  16. namespace rgb {
  17.  
  18. struct RGB : public shell::Command
  19. {
  20. };
  21. }
  22.  
  23. namespace shell {
  24.  
  25. struct Module
  26. {
  27. Module(): cmd(new (rgb::RGB)())
  28. {
  29. }
  30.  
  31. virtual ~Module()
  32. {
  33. delete cmd;
  34. }
  35. Command *cmd;
  36. };
  37. }
  38.  
  39. int main()
  40. {
  41. shell::Module module;
  42. return 0;
  43. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
Standard output is empty