cocos2d代码转换为C++的

_terrain = initWithWorld:_world] autorelease];
变成C++的代码是什么?
感谢大神

_terrain = new Terrain;
_terrain->initWithWorld(_world);
_terrain->autorelease; ?

autorelease就不用delete了

delete还怎么用啊

_terrain->autorelease; --------> delete(_terrain);吧

_terrain = new Terrain;
_terrain->initWithWorld(_world);
_terrain->autorelease; ?

delete还怎么用啊

_terrain->autorelease; --------> delete(_terrain);吧