Generation

generate functionThu, 20 Apr 2023

Create a menu with username and password

#include <iostream> #include <string> using namespace std; void login(){ cout << "Enter username: "; string username; getline(cin, username); cout << "Enter password: "; string password; getline(cin, password); cout << "Welcome " << username << endl; } int main(){ login(); return 0; }

Want to kickstart your project?Use the new AI Studio to create your code