Ok i just started c++ with no knoledge about any other programming language, so bear with me.
I am trying to make a simple program that you enter a password
and if it is correct, it says welcome. If it is wrong, then it says try again. Simple? Well when ever i type anything it says welcome,here is my code, see if you can find out whats wrong please..
#include<iostream>//structure
usingnamespace std;//structure
int main ()//structure
{
int password;//declaring variables
int pass;//the password to type
cout << "Please Enter The Password:";//telling to enter password
cin >> password;//input
if (password==pass)//if else statment
cout << "Welcome!";
else
cout << "Try Again.";//if else statment
return 0;//terminate program
}