摘要:
对于2009年上半年软件设计师下午试题的一个分析,对于第五个空很多网上给出的答案都是ptr->rchild,本人认为应为q->elem->rchild,因为此时ptr已为空,ptr->rchild会报错,以下为本人写的测试程序,在c++ builder中测试通过//---------------------------------------------------------------------------#pragma hdrstop//---------------------------------------------------------------
阅读全文