<P> 楼上的朋友你运行一下第四章的4-7(关于块的).看看有没有问题.我的有异常(在屏幕上点击选取点时).</P>
<P> 我的不能调试.一调试就死机.前一段问过死机的问题.也没解决掉.</P> <P>“拷贝构造函数”见C++类与对象内容。</P>
<P> </P> <P>To 11楼 ,有关第四章的CH4-7(关于块的).程序中做如下改正:</P>
<P>Ch4_7Commands.cpp文件中,</P>
<P>void insrtBlk()</P>
<P>{</P>
<P> …………………………</P>
<P> if (pBlkDefRecord->hasAttributeDefination)</P>
<P> {</P>
<P> pBlkDefRecord->newIterator(pIterator);</P>
<P> …………………………</P>
<P> delete pIterator;</P>
<P> }</P>
<P>即delete pIterator;应在其前一行大括号之前(而不是之后)。与语句pBlkDefRecord->newIterator(pIterator);相对应。否则,若pBlkDefRecord->hasAttributeDefination为false,不执行pBlkDefRecord->newIterator(pIterator);语句,没有创建对象,当然不能删除了。</P>
<P>:)</P>
页:
1
[2]