I am just messing around in C++ with some things I recently learned and I wanted to know how to correctly compare two strings to each other. I looked at a previous thread for help, but I am not sure I am getting the variables right and there was a repeating error. (P.S. This is executed to the command prompt.)
    string Users = "Username1";
    //Set an empty string.
    string UserChoice; 
    //Print out a line that warns the user to type a user.
    std::cout << "Username: "; 
    std::cin >> UserChoice;
    //If the user types out whatever "Users" is, run the code below.
    if (strcmp(Users, UserChoice) == 0){
    //Do Stuff
    }
 
     
     
    