Wednesday, June 29, 2011

C++ Standard Library: The string Class

C++ Standard Library: The string Class: "Equality ==
string s1( 'abc' );
string s2( 'def' );
string s3( 'abc' );
...
bool flag1 = ( s1 == s2 ); // flag1 = false now
bool flag2 = ( s1 == s3 ); // flag2 = true now"