char **pG=new char*[numGcode];
CString strtext;
for(int i=0;i<numGcode;i++)
{
pG[i]=new char[20];
}
if (!File.Open(PathName, CFile::modeRead))
{
MessageBox("檔案讀取失敗", MB_OK);
return;
}
int ng=0;
while (File.ReadString(strtext)!=FALSE && strtext.GetLength()!=0)
{
strcpy(pG[ng],strtext);
ng++;
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/102994.html
標籤:基礎類
上一篇:C++ 繼承問題
下一篇:2015騰訊筆試題
