I want to compare two strings. Is it possible with strcmp? (I tried and it does not seem to work). Is string::compare a solution?
strcmp
string::compare
Other tha
By your question, "is there a way to compare a string to a char?" do you mean "How do I find out if a particular char is contained in a string?" If so, the the C-library function:
char *strchr(const char *s, int c);
will do it for you.
-- pete