I have finished the breakout and it can be compiled. However, when I execute it, "segmentation fault(core dumped)" appears. I test the code block by block and find the code below generate the problem but I can not find what is wrong with this.

I put the code on the "http://imgur.com/FTg6NSN".


In fact, I miss to check whether the object equals NULL.

You must log in to answer this question.