cstring數(shù)組初始化 CString數(shù)組?
CString數(shù)組?CString STR=STR[0]的第一個(gè)STR被解析為CString[],這是CString數(shù)組類型。這種類型與CString不同。它沒有定義運(yùn)算符“=”,因此會(huì)報(bào)告錯(cuò)誤。您可
CString數(shù)組?
CString STR=STR[0]的第一個(gè)STR被解析為CString[],這是CString數(shù)組類型。這種類型與CString不同。它沒有定義運(yùn)算符“=”,因此會(huì)報(bào)告錯(cuò)誤。您可以嘗試CString STR1=STR[0]。CString的operator=的定義如下:const CString&;operator=(const CString&;stringSrc)const CString&;operator=(TCHAR ch)const CString&;operator=(const unsigned char*psz)const CString&;operator=(LPCWSTR lpsz)const CString&;operator=(LPCSTR lpsz)