當前位置:編程學習大全網 - 電腦編程 - MFC CString問題

MFC CString問題

CString沒有類似sscanf或者正則的方法。

使用CString標準函數做,需要用壹個循環,偽代碼如下:

int pos = str.Find(用來標識的);

while(pos>=0)

{

array[i++] = str.Left(pos);

str = str.Right(str.GetLength()-pos);

pos = str.Find(用來標識的);

}

  • 上一篇:Arcgis 視頻教程下載
  • 下一篇:C語言翻譯數字成英文單詞的編程
  • copyright 2024編程學習大全網