CODE (text):
скопировать код в буфер обмена
скопировать код в буфер обмена
- #include <iostream.h>
- int main(){
- char authpass[7] = "qwerty";
- cout << "Hello, snikers987!\r\n";
- cout << "This is your first programm on C++!\r\n";
- char letter;
- cout << "Do you want begin? (y/n): ";
- cin >> letter;
- if(letter == 'y'){
- char username[10];
- cout << "Enter user name: ";
- cin >> username;
- cout << "User:" << username << "\r\n";
- char pass[10];
- cout << "Enter your password: ";
- cin >> pass;
- //cout << strlen(pass);
- // if(strcmp(pass,authpass) > 0){
- if(pass == authpass){
- cout << "You have successfully authenticates!";
- }else{
- cout << "You have error!";
- }
- }else{
- cout << "bay"<< endl;
- }
- }