I'm using the following bit of code to get user input. the command
/q should make the program exit but it's not working correctly.
what am i doing wrong?

Code:
const unsigned int MAX_SIZE = 256;
char pszCmd[MAX_SIZE] = "";

do
{
cin.getline(pszCmd, MAX_SIZE, '\n');
cout << pszCmd << endl;
}while(pszCmd != "/q");