I start to compile and there is a code error, here is: (unfinished for now)
#include<iostream> #include<stdlib.h> #include<string.h> using namespace std; void check_pass (string password) { string people_pass="Samsung"; if(password==people_pass) { cout<<" Äîñòóï ðàçðåø¸í."<<endl; float prohodka=1; } else { cout<<"Äîñòóï çàïðåù¸í."<<endl; float prohodka=0; } } int main( int argc, char **argv) { setlocale(0,""); float prohodka = 0 do { string user_pass; cout<<"Ââåäèòå ïàðîëü : "; getline(cin,user_pass); check_pass(user_pass); } while(prohodka == 0); system("pause"); return 0; }