C++ has a string class which contains a compare method. You certainly have some documentation where you can get info about those. If you can find it you can even do better.
I can understand that is is all new to you, and that it is difficult to grasp it all, but why use char array when there is a string class? Why do you refuse to read or look up documentation?
You do
#include <string> so why don't you use it?
Reputation Points: 2035
Solved Threads: 645
Senior Poster
Offline 3,740 posts
since Oct 2008