Comparing integers is easy using the < , > or = operators.
You need to use a string compare (strcmp()) for comparing 2 strings (char arrays). Check the link for an example.
http://www.cplusplus.com/reference/c...ng/strcmp.html
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 5 of 5
Thread: selection sortingThreaded View
|
Click Here to Expand Forum to Full Width |