fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. enum class foo: uint8_t {bla1, bla2, bla3};
  5.  
  6. int main() {
  7. foo x = foo::bla2;
  8.  
  9. switch (x) {
  10. case foo::bla1: cout << "bla1\n"; break;
  11. case foo::bla2: cout << "bla2\n"; break;
  12. case foo::bla3: cout << "bla3\n"; break;
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
bla2