解决方案 »

  1.   

    你是不是在release下编译的
    如果是的话,编译器编译的时候采用了优化技术
    PFlinklist *g_plist=NULL;//这里为空
    PFlinklist *p=g_plist->next,*q;
    //从这里以后没有任何执行效果,直接跳过了q=p;
    GetClientRect(rectClient);while(p != NULL)
    {
    DeciceNum++;
    p = p->next;
    }
    p = q;
      

  2.   

    PFlinklist *p=g_plist->next  到这里程序就已经崩溃了,  肯定会弹出异常, 但你的环境没有弹出, 那就是可奇葩了.
      

  3.   

    问题已经解决了  链表头指针没有传过来  thankyou