Main
an anonymous user
·
C++
·

#include <iostream> #include <string> using namespace std; void check_pass (string password) { string valid_pass = "qwerty123"; if (password == valid_pass) { cout << "Доступ разрешен." << endl; } else { cout << "Неверный пароль!" << endl; } } int main() { string user_pass; cout << "Введите пароль: "; getline (cin, user_pass); check_pass (user_pass); return 0; }
Click on the Run button to get started.
The code/input has changed since you last clicked on Run. Click it
again to see the updated changes.
Comments