BugInTheSYS

Untitled

Oct 26th, 2011
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. class bcString {
  2. public:
  3. //...
  4.   friend bool operator==( const bcString &sTextA, const bcString &sTextB );
  5. //...
  6. protected:
  7. //...
  8.   char *_data;
  9. //...
  10. };
  11.  
  12. //...
  13.  
  14. /*
  15. ====================
  16. bcString::operator==
  17.  
  18.   Compares the two strings given case-sensitively.
  19. ====================
  20. */
  21. bool operator==( const bcString &sTextA, const bcString &sTextB ) {
  22.   return !strcmp( sTextA._data, sTextA._data );
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment