Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Login(Utente utenti[], int n, int &k)
- {
- string pass, us;
- bool trovato = false;
- cout<<"Inserisci il nome utente: "
- cin>>us;
- for(int i = 0; i<n; i++)
- {
- if(s == utenti[i].Username)
- {
- k = i;
- trovato = true;
- }
- }
- if(trovato == false)
- {
- cout<<"Username non registrato!";
- cout<<"Vuoi reeinserire l'utente?";
- char ins;
- if(ins == 'si')
- {
- void Login(utenti, n, k);
- }
- return;
- }
- cout<<"Inserisci la password: ";
- cin>>pass;
- while(pass != utenti[k].password)
- {
- cout<<"Le password non corrispondono!";
- cout<<"Reinserire la password!";
- cin>>pass;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement