rider031

Users

Feb 6th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.05 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <conio.h>
  4. #include <string>
  5. using namespace std;
  6. void selectMenu(int NumberUsers);
  7. void Setup();
  8. void Show();
  9. void Add();
  10.  
  11. class User
  12. {
  13. public:
  14.     static int UserNumber;
  15.     string Pass , Name ;
  16.     void Del(){};
  17. };
  18. void Setup()
  19. {
  20.     User Admin;
  21.     Admin.Name = "Admin";
  22.     Admin.Pass = "Galixon0103";
  23.     Admin.UserNumber = 1;
  24. }
  25.  
  26.  
  27. void Show()
  28. {
  29.  
  30. }
  31. int main()
  32. {
  33.     Setup();
  34.     User ToRef;
  35.     selectMenu(ToRef.UserNumber);
  36.  
  37.     cout << "Hello world!" << endl;
  38.     return 0;
  39. }
  40. void selectMenu(int NumberUsers)
  41. {
  42.     User ToRef;
  43.     char wybor;
  44.     cout<<"\n\nWybierz akcje: \n0 - Dodaj Uzytkownika\n1 - Wybierz Uzytkownika\n2 - Usun Uzytkownika\n3 - Wyjdz\n\t";
  45.     cin>>wybor;
  46.     if(static_cast<int>(wybor) >= 48 && static_cast<int>(wybor) <= 51)
  47.         {
  48.             switch(static_cast<int>(wybor))
  49.             {
  50.  
  51.                 }
  52.  
  53.                 system("CLS");
  54.                 selectMenu(ToRef.UserNumber);
  55.                 getch();
  56.  
  57.             }
  58.         }
Advertisement
Add Comment
Please, Sign In to add comment