有以下代码
for (int i=0 ; i<RowN ; i++)
{
if (!pchclassindex)
{
pchclassindex = new struct ChClassIndex;
pchclassindex->classchar=CharacterOrder[i];
pchclassindex->classfilepath=NULL;
pchclassindex->next=NULL;
pc1=pchclassindex;
}
else
{
pc=new struct ChClassIndex;
pc->classchar=CharacterOrder[i];
pc->classfilepath=NULL;
pc1->next=pc;//当我运行大数据的时候程序就出错了
pc->next=NULL;
pc1=pc1->next;
} }
错误信息为:unhandled exception in xx.exe:0xc0000005:Access violation