#include <stdlib.h> #include <iostream> #include <vector> #include <string> int main() { std::vector<std::string> users = {"teagan, penlands"}; std::string loginUser; char* mySecret = getenv("tPassword"); std::cout << "Welcome.\n"; std::cout << "Please enter your username.\n"; std::cin >> loginUser; if(loginUser == users[0] || loginUser == users[1]){ std::cout << "What is the password\n"; }else{ std::cout << "your user is not in the users file.\n"; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)