Quote: "The std::string class already has overloaded operators for the almost all the operators."
The following code doesn't work for me...
#include <iostream>
#include <string.h>
using namespace std;
// -------------------------------------------------------------------------------------
// main entry point
int main( int argc, char* argv[] )
{
string a = "yeah";
string b = "yeah";
if( a == b ) cout << "They're the same!" << endl;
if( a != b ) cout << "They're not the same!" << endl;
// end program
return 0;
}
TheComet
"Why geeks like computers: unzip, strip, touch, finger, grep, mount, fsck, more, yes, fsck, fsck, fsck, umount, sleep." - Unknown