whenever i run the below program it asks me to type in a password and it should go through all that could possibly be the password but if i type in a password of 2 or more digits it only displays the first letter of the password.
#include <iostream>
using namespace std;
int main()
{
static char a;
a = 'A';
char password;
cout << "type in password: ";
cin >> password;
while (a != password)
{
a = a + 1;
cout << a << "\n";
}
system("PAUSE");
return 0;
}