string compare

Aug 3, 2012 at 7:21am
how to compare to char strings in c++

can i use strcmp()????
Aug 3, 2012 at 7:55am
closed account (o3hC5Di1)
http://cplusplus.com/reference/clibrary/cstring/strcmp/

Yes.

All the best,
NwN
Aug 3, 2012 at 10:08am
It would be better to use actual C++ strings, rather than C-style arrays of char.
Topic archived. No new replies allowed.