Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <conio.h>
- #include <string>
- using namespace std;
- void selectMenu(int NumberUsers);
- void Setup();
- void Show();
- void Add();
- class User
- {
- public:
- static int UserNumber;
- string Pass , Name ;
- void Del(){};
- };
- void Setup()
- {
- User Admin;
- Admin.Name = "Admin";
- Admin.Pass = "Galixon0103";
- Admin.UserNumber = 1;
- }
- void Show()
- {
- }
- int main()
- {
- Setup();
- User ToRef;
- selectMenu(ToRef.UserNumber);
- cout << "Hello world!" << endl;
- return 0;
- }
- void selectMenu(int NumberUsers)
- {
- User ToRef;
- char wybor;
- cout<<"\n\nWybierz akcje: \n0 - Dodaj Uzytkownika\n1 - Wybierz Uzytkownika\n2 - Usun Uzytkownika\n3 - Wyjdz\n\t";
- cin>>wybor;
- if(static_cast<int>(wybor) >= 48 && static_cast<int>(wybor) <= 51)
- {
- switch(static_cast<int>(wybor))
- {
- }
- system("CLS");
- selectMenu(ToRef.UserNumber);
- getch();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment