Originally Posted by Thantos strcmp takes in two pointers to characters. If you want to use string compare then you need to do: Code: c = strcmp ( a.c_str(), b.c_str() ); you could also use the built in compare function for std::string Code: if ( a == b ) yep thanks, i didnt know i could compare strings like that
c = strcmp ( a.c_str(), b.c_str() );
if ( a == b )