How To Make Program Detect When Certain Letter Is Entered?

Hello I'm writing a program that only starts when the user inputs the letter P or anything that starts with the letter P. How would I go about doing that? Thank you!
depends on input.. or you could use a switch..

1
2
3
4
5
6
7
cout << "enter letter p";
cin >> input;
while( input == 'p' )
{
//do stuff
}
Topic archived. No new replies allowed.