CFile file("3.txt",CFile::modeRead);
DWORD dw=file.GetLength();
char* ch=new char[dw+1];
ch[dw]=0;
file.Read(ch,dw);
MessageBox(ch); 在这里为什么一定要用指针,可以用别的不?用别的,又该怎么编?
DWORD dw=file.GetLength();
char* ch=new char[dw+1];
ch[dw]=0;
file.Read(ch,dw);
MessageBox(ch); 在这里为什么一定要用指针,可以用别的不?用别的,又该怎么编?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货