CString karşılaştırma işleçleri

bool operatör == ( const CStringamp; s1, const CString & s2 );

bool oper&atör == ( const CStringamp; s1, lpctstr s2 );

bool oper&atör == ( lpctstr s1, const CStringamp; s2 );

bool operatör ! = ( const CStringamp; s1, const CString & s2 );

bool oper&atör ! = ( const CStringamp; s1, lpctstr s2 );

bool oper&atör ! = ( lpctstr s1, const CStringamp; s2 );

bool operatör lt;( const CString & s1, const CString & s2 );

bool operatör lt;( const CString & s1, lpctstr s2 );

bool operatör lt;( lpctstr s1, const CString & s2 );

bool operatör gt;( const CString & s1, const CString & s2 );

bool operatör gt;( const CString & s1, lpctstr s2 );

bool operatör gt;( lpctstr s1, const CString & s2 );

bool operatör lt; = ( const CString & s1, const CString & s2 );

bool operatör lt; = ( const CString & s1, lpctstr s2 );

bool operatör lt; = ( lpctstr s1, const CString & s2 );

bool operatör gt; = ( const CString & s1, const CString & s2 );

bool operatör gt; = ( const CString & s1, lpctstr s2 );

bool operatör gt; = ( lpctstr s1, const CString & s2 );

Dönüş değeri

Dizeleri karşılaştırma koşula uyuyorsa sıfır olmayan; Aksi halde 0.

Parametreleri

s1, s2

CString nesneleri karşılaştırmak için.

Açıklamalar

Bu karşılaştırma işleçleri iki dizeleri karşılaştırmak. Büyük küçük harf duyarlı uygun yerine işleçlerdir karşılaştırmak üye işlevi.

Örnek

Aşağıdaki örnek, CString karşılaştırma işleçleri kullanmak gösterir.

/ / Örnek CString karşılaştırma işleçleri
CString s1 ("abc");
CString s2 ("abd");
assert (s1 lt; s2); / / Operatör için hem de aşırı.
assert ("abc" < s1); / / CString ve char *
assert (s2 > "abe")

CString genel bakış |nbsp; Sınıf üyeleri | Hiyerarşi çizelgesi

Index