首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

烦劳大伙看看小弟我这递归为什么Unhandled exception at Stack overflow

2012-07-20 
烦劳大伙看看我这递归为什么Unhandled exception atStack overflow.出现了Unhandled exception atStack ov

烦劳大伙看看我这递归为什么Unhandled exception at Stack overflow.
出现了Unhandled exception at Stack overflow.的错误

C/C++ code
//COctree *m_pOctreeNodes[8] 是COctree  的一个成员COctree* COctree::FindVoxel(COctree * o, double x, double y, double z){   if (m_bSubDivided)   {       for (int i = 0; i< 7; i++)       {           if (m_pOctreeNodes[i]->BoundVictory(x, y, z) && m_pOctreeNodes[i]!= NULL)           {               FindVoxel(m_pOctreeNodes[i], x, y, z);               //break;           }       }   }   else if (!m_bSubDivided && m_pVertices)   {       return this;   }}



[解决办法]
一般指过程函数递归层数过多导致栈溢出

热点排行