FILE *fptxt1;
if( ( fptxt1= fopen ("sjlb.txt","w+")) == NULL )
{
MessageBox("写'sjlb.Txt'文件失败!","系统警告",MB_OK); 
return;
}
struct PDATA P1 ;
for( i=0;i < Plist.GetCount();i++) {
P1=Plist.GetAt(posp);
fprintf(fptxt1,"%d,%d,%f,%d\n",P1.x,P1.y,P1.z,P1.index);
Plist.GetNext(posp);
}
fclose( fptxt1);
这段文本输出程序昨天还好使,今天不知道为什么运行时就出现Debug Assertion Failed提示,有人说是释放了空指针,我是初学者,还是没弄明白呀,请各位指教,PDATA是我自己定义的结构体。