Here is a way to do it
char username[20];
cin >> username; //getting the username
if ( !strcmpi("jstreich", command))
{
\\ do some code if the username is jstreich
}
so the strcmpi is the way to do it
I'm not sure what library you have to include, I thinkit's string.h or iostream.h
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.