C++?CString?÷????
???????????? ???????[ 2014/12/18 11:22:59 ] ????????C++ ???????
????VC:CString?÷????
?????б?????????£?
????CString???????
????CString( );
????????CString csStr;
????CString( const CString& stringSrc );
????????CString csStr("ABCDEF????123456");
????CString csStr2(csStr);
????CString( TCHAR ch?? int nRepeat = 1 );
????????CString csStr('a'??5);
????//csStr="aaaaa"
????CString( LPCTSTR lpch?? int nLength );
????????CString csStr("abcdef"??3);
????//csStr="abc"
????CString( LPCWSTR lpsz );
????????wchar_t s[]=L"abcdef";
????CString csStr(s);
????//csStr=L"abcdef"
????CString( const unsigned char* psz );
????????const unsigned char s[]="abcdef";
????const unsigned char* sp=s;
????CString csStr(sp);
????//csStr="abcdef"
????CString( LPCSTR lpsz );
????????CString csStr("abcdef");
????//csStr="abcdef"
????int GetLength( ) const;
???????????????????????????β????????
????????csStr="ABCDEF????123456";
????printf("%d"??csStr.GetLength()); //16
????void MakeReverse( );
?????????????????
????????csStr="ABCDEF????123456";
????csStr.MakeReverse();
????cout<<csStr; //654321????FEDCBA
????void MakeUpper( );
??????Сд?????????д???
????????csStr="abcdef????123456";
????csStr.MakeUpper();
????cout<<csStr; //ABCDEF????123456
????void MakeLower( );
????????д???????Сд???
????????csStr="ABCDEF????123456";
????csStr.MakeLower();
????cout<<csStr; //abcdef????123456
????int Compare( LPCTSTR lpsz ) const;
?????????Сд??????????????????????0???????????1??С???????-1
????????csStr="abcdef????123456";
????csStr2="ABCDEF????123456";
????cout<<csStr.CompareNoCase(csStr2); //0
????int CompareNoCase( LPCTSTR lpsz ) const;
???????????Сд??????????????????????0???????????1??С???????-1
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11