Original Post
Ok, in my simple linked list, I''ve got a few functions that require two strings to be compared. Here''s my code:
char* a = "Zweihander";
char* b = "Dai-Katana";
char* c = "Zweihander";
if (a == c)
{
cout << "the two strings match" << endl;
}
else
{
cout << "something''s terribly wrong" << endl;
}
Ok, needless to say, the else statement comes up every time
. So, I want to know how to compare two strings. Please reply, as my project is getting slowed down quite a bit due to this quaint roadblock. Thanks