Jose Velasquez

Generation

generate functionSun, 18 Jun 2023

programa que escriba la contraseña solicitada por otro programa en linux

#include <iostream> using namespace std; int main () { string password; cout << "Enter the password: " << endl; cin >> password; if (password == "xyzzy") { cout << "Access granted: Welcome to the dungeon!" << endl; } else { cout << "Access denied!" << endl; } return 0; }

Questions about programming?Chat with your personal AI assistant