problem with menu_selector()

problem with menu_selector()
0.0 0


emmm sorry about stupid Question (and i dont no english very well sorry about that too)
im Beginner in cocos2dx and c++

how should i do this :

this is my player class header
class player{

ccsprite model;

ccsprit get_model();
void func_1();


and this is hello world init


bool HelloWorld::init()
// 1. super init first
if ( !CCLayer::init() )
return false;

player p=new player();
CCMenuItemImage *pCloseItem = CCMenuItemImage::create );//// i want to call func_1 of p not player::func_1
pCloseItem~~>setPosition( ccp(CCDirector::sharedDirector()>getWinSize.width 20, 20) );

CCMenu* pMenu = CCMenu::create(pCloseItem, NULL);
this~~>addChild(pMenu, 1);

return true;



In the HelloWorld file, create a method and in that method call p.func_1