fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Input
  5. {
  6. bool enabled;
  7. };
  8.  
  9. struct Form
  10. {
  11. Input name;
  12. Input surname;
  13. Input age;
  14. Input genderIdentity;
  15. };
  16.  
  17. int main() {
  18. Form form;
  19. form.name .enabled = true;
  20. form.surname .enabled = true;
  21. form.age .enabled = false;
  22. form.genderIdentity.enabled = true;
  23. return 0;
  24. }
Success #stdin #stdout 0s 4224KB
stdin
Standard input is empty
stdout
Standard output is empty