MeehoweCK

Untitled

Dec 2nd, 2020
485
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. enum class stan_gry
  6. {
  7.     gra_otwarta, koniec_porazka, koniec_zwyciestwo, koniec_remis
  8. };
  9.  
  10. int main()
  11. {
  12.     stan_gry stan = stan_gry::koniec_zwyciestwo;
  13.     cout << static_cast<int>(stan) << endl;     // wypisuje 2
  14.     return 0;
  15. }
RAW Paste Data