need help for password and username loop program

can somebody convert this to a loop program???
help is appriciated..
:D
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  #include <iostream>
using namespace std;

int main()
{
	char Password [];
	
	cout << "please enter password \n";
	cin >> Password;
	if(Password == "PLP")
        {// I prefer to use these
		cout << "Password Accepted \n";
	}
        else
	{
		cout << "Invalid Password \n";
	}
	return 0;
}

Please read about loops here: http://www.cplusplus.com/doc/tutorial/control/

Hope it helps.
Topic archived. No new replies allowed.