How to translate the static method in Object-C to C++

I have read the book “Apress Learn cocos2d game development with IOS5 nov 2011”. I have seen this code :

#import <Foundation/Foundation.h>
#import “cocos2d.h”

`interface GameScene : CCLayer
{
}

+(id) scene;

`end
Listing 4–2. GameScene.m with the Scene Method and Standard Methods Added, Including Logging
#import “GameScene.h”

`implementation GameScene

+(id) scene
{
CCScene scene = [CCScene node];
CCLayer
layer = [GameScene node];
[scene addChild:layer];
return scene;
}

-(id) init
{
if ((self = [super init]))
{
CCLOG(“@:", NSStringFromSelector(_cmd), self);
}

return self; 

}

-(void) dealloc
{
CCLOG(”@:", NSStringFromSelector(_cmd), self);

// never forget to call [super dealloc] 
[super dealloc]; 

}

`end

I haven’t known how to translate that code to C**.
Can anyone help me translate that code to C**