This code may help u although it is very very very simpl. Just add the code that returns the characters

Code:
//Logical operators
#include <iostream>
#include <string>
#include <conio.h>

using namespace std;

int main()
{
    cout << "\tGame Designer's Network\n";
    int security = 0;
    
    string username;
    
    cout << "\nUser Name: ";
    cin >> username;
    
    string password;
    cout << "\nPassword: ";
    cin >> password;
    
    if (username == "S.Meier" && password == "civilization")
    {
                 cout << "\nHey, Sid.";
                 security = 5;
    }

    if (username == "Josh" && password == "Josh")
    {
                 cout << "\nWhat's up, Josh.";
                 security = 5;
    }
         
         if (!security)
         cout << "\nYour LogIn has failed";
         

getch();
return 0;
}