fork download
  1. #include <iostream>
  2.  
  3. struct Command {
  4. char key;
  5. const char *command;
  6. };
  7.  
  8. Command commands[] = {
  9. { 11, "LIGHTS_TEST_SW" },
  10. { 12, "MASTER_MODE_AA" }
  11. };
  12.  
  13.  
  14. int main() {
  15. for (int i = 0; i < 2; ++i)
  16. std::cout << commands[i].command << std::endl;
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 5416KB
stdin
Standard input is empty
stdout
LIGHTS_TEST_SW
MASTER_MODE_AA