Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class bcString {
- public:
- //...
- friend bool operator==( const bcString &sTextA, const bcString &sTextB );
- //...
- protected:
- //...
- char *_data;
- //...
- };
- //...
- /*
- ====================
- bcString::operator==
- Compares the two strings given case-sensitively.
- ====================
- */
- bool operator==( const bcString &sTextA, const bcString &sTextB ) {
- return !strcmp( sTextA._data, sTextA._data );
- }
Advertisement
Add Comment
Please, Sign In to add comment