b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

CString成员函数使用实例(2)

电脑杂谈  发布时间:2019-06-10 14:25:46  来源:网络整理

Cstring ss1 = "0123456789";

Cstring ss2 = ss1. Right (10-4); //ss2 = "456789";

//ss1 = "0123456789";

19. BOOL LoadSteing(UINT nID);

Cstring ss1;

SD_ID113 MCS51 &Save as

ss1.LoadSteing(113); //ss1 = "MCS51 &Save as ";

20. LPTSTR LockBuffer();

Cstring ss1,ss2;

ss1="0123456789";

LPSTR lp = ss1.LockBuffer();

ss2 = lp; // ss2 = "0123456789";

strcpy(lp,"77777"); //ss1 = "77777";

21. void MakeLower();

Cstring ss1 ="ABCDEF";

ss1.MakeLower(); //ss1 = "abcdef";

22. void MakeReverse();

Cstring ss1 ="ABCDEF";

ss1. MakeReverse (); //ss1 = "fedcba";

23. void Mid(int nFirst) const;

void Mid(int nFirst, nCount) const;

Cstring ss2,ss1 ="0123456789";

ss2 = ss1. Mid(3); // ss2 = "3456789";

ss2 = ss1. Mid(3,2); // ss2 = "34";

24. int Mid(TCHAR ch);

void Mid(int nFirst, nCount) const;

Cstring ss2,ss1 ="0123456789";

ss2 = ss1. Mid(3); // ss2 = "3456789";

ss2 = ss1. Mid(3,2); // ss2 = "34";

25. int Remove(TCHAR ch);

Cstring ss1;

sscanf对cstring_cstring转化为uint_cstring sscanf

ss1="this is a test";

int n=ss1.Remove(’t’); //ss1 = " his is a es ";

//n = 3;

26. int Replace(TCHAR chOld, TCHAR chNew);

int Replace(LPCTSTR lpszOld, LPCTSRR lpszNew);

Cstring ss1; int n;

ss1 = "C--";

n = ss1.Replace(’-’, ’+’); //ss1 = "C++";

//n = 2;

ss1="00,01,02,a0,b0,";

n=ss1.Replace(",", "H,"); //ss1 = "00H,01H,02H,a0H,b0H,";

//n = 5;

27. int ReverseFind(TCHAR ch) const;

Cstring ss1;

ss1="this is a test";

int n=ss1. ReverseFind (’t’);//n = 13;

28. void SetAt(int nIndex, TCHAR ch) const;

Cstring ss1="0123456789";

ss1.SetAt(4,’H’); // ss1="0123H56789"

29. int Insert(int nIndex, TCHAR ch);

int Insert(int nIndex, LPCTSTR psr);

Cstring ss1="0123456789";

ss1. Insert (4,’H’); // ss1="0123H456789"

ss1. Insert (4,’Hex’); // ss1="0123x456789"

ss1. Insert (4, "Hex "); // ss1="0123Hex456789"

30. BSTR SetSysString(BSTR *pbstr) const;

cstring spanexcluding( lpctstr lpszcharset ) const。cstring operator+(const cstring& string1, const cstring& string2)。bool operator () ( const cstring& strl, const cstring& strr ) const。

32. Cstring SpanIncluding(LPCTSTR lpszCharSet) const

CString ss1 = "0123456789";

Cstring ss2 = ss1.SpanIncluding("0123");//ss2 = "0123";

ss2 = ss1.SpanIncluding("456");//ss2 = "";

ss2 = ss1.SpanIncluding("789");//ss2 = "";

ss2 = ss1.SpanIncluding("01234567");//ss2 = "01234567";

ss1 = "01234 56789"

其他名称,ss2/ss2。034-036 安妮前三直选 【01234789-12345678-01234567】 036期 16041 中。120-122 安妮前二复式 【01234567】 120期 66630 中。

ss1 = "01234 56789"

ss2 = ss1.SpanIncluding("012345678");// ss2 = "01234";

ss1 = "56789"

aaa products ss2 1/4" solenoid valve ss2。(13) 012345678, 910111213, 301122131415061798, 。quicktime 5.02 完全版--name:luke key:ueau-tmxw-reme-3uaw-5678或者name:microke s/n:pmme-ggqm-emru-upe3-5678。

33. void TrimRight();

void TrimRight(TCHAR chTarget);

void TrimRight(LPCTSTR lpszTargets);

34. void TrimLeft();

void TrimLeft(TCHAR chTarget);

void TrimLeft(LPCTSTR lpszTargets);

35.void UnlockBufer();

关键词:CString C++ VC 成员函数 使用实例


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-105043-2.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    • 张高迎
      张高迎

      表示农民老了只能喝水了

    热点图片
    拼命载入中...