How to convert cocos2d to cocos2dx?


#1

i read cocos2d book, i want to convert to cocos2dx, so how to convert this line:(
[label setString: [NSString stringWithFormat: @“%d”,score]];

label is CCLabelAtalas type


#2

this should work

  label->setString(CCString::createWithFormat("%d", score)->getCString());