Okay again a very basic question, I followed the tutorial step by step and it does not want to work. It executes fine but it will not say the passwords match
<code>
#include <iostream.h>
void main()
{
//declerations
char userName[24] ="";
char pw[8]="";
char pw2[8]="";
cout << "Enter a user ID: ";
cin >> userName;
cout << "Enter a password: ";
cin >> pw;
cout << "";
cout << "Re-Enter your password: ";
cin >> pw2;
if (pw==pw2)
{
cout<<"Your passwords match"<<endl;
}
else
{
cout<<"Your passwords do not match"<<endl;
}
}
</code>
It takes two seconds to read you will understand what I mean