Advertisement
pabloducato

constexpr_n_practice_standard_cpp_11

Apr 16th, 2018
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement