SHARE
TWEET

constexpr_n_practice_standard_cpp_11

pabloducato Apr 16th, 2018 (edited) 102 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     constexpr int start = {1};
  8.     constexpr int stop = {0};
  9.     int wybor;
  10.     cout << "Podejmij decyzje. Wybierz 0 lub 1" << endl;
  11.     cin >> wybor;
  12.     switch (wybor)
  13.     {
  14.     case start:
  15.     {
  16.         cout << "Rozpoczynamy" << endl;
  17.     }
  18.     break;
  19.     case stop:
  20.     {
  21.         cout << "Konczymy" << endl;
  22.     }
  23.     break;
  24.     }
  25.     cin.get();
  26.     cin.get();
  27.     return 0;
  28. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top