待補充。
如何將CString轉換成int、float等數值型;如何截取子字符串; CString Mid( int nFirst ) const; CString Mid( int nFirst, int nCount ) const;//nCount是指從開始位置截取幾個字符整形轉換為CString型時,左邊補0;
int i=89; CString str; str.Format("%05d",i); //0代表左邊不夠,補0;5代表字符長度。 TRACE("%s",(LPCTSTR)str);新聞熱點
疑難解答