Hey, im making a code to ask a user to type in a username and password to continue and for the console to say "thanks" and i need help. Heres my "Unsuccessful" Code:
#include <iostream>
using namespace std;
int main(){
int a, b;
a = 159876;
b = 43812385;
int c;
int d;
cout << "Please Enter your Username:";
cin >> c;
cout << "Please Enter a Password:";
cin >> d;
if (c != b && d != a){
cout << "Incorrect Username/Password Combintation \n";
}
if (c == b && d = a){
cout << "What would you like to do";
}
system("Pause");
}