随笔分类 - C++
C++ String 小杂记
摘要:1、关于字符串的小函数 strcpy(s1, s2); 复制字符串 s2 到字符串 s1。 strcat(s1, s2); 连接字符串 s2 到字符串 s1 的末尾。 strlen(s1); 返回字符串 s1 的长度。 strcmp(s1, s2); 如果 s1 和 s2 是相同的,则返回 0;如果
阅读全文
posted @ 2019-05-07 11:05
wolun666
CStringArray杂记
摘要:1、Arr.GetAt(位置); Arr.Replace(被替换,替换) ; Arr.RemoveAll() //清空数组; Arr.Add(添加元素);
阅读全文
posted @ 2019-01-03 13:44
wolun666
CString杂记
摘要:1、格式化 str.Format(_T("Line[%2d] %s ... "),a,b) 得到长度= str.GetLength() 2、 CString.Left( int nCount ) const; //从左边1开始获取前 nCount 个字符 CString.Mid( int nFirs
阅读全文
posted @ 2019-01-03 13:43
wolun666
浙公网安备 33010602011771号