xcode开发cocos2dx,该怎么添加qq互联呢?

这是工程里的AppDelegate.h,实现文件是.mm格式。
要使用qq互联的sdk,需要重载- (void)applicationWillResignActive:(UIApplication *)application和- (void)applicationDidEnterBackground:(UIApplication *)application方法。
但是AppDelegate是c++类啊,根本就不能重载这二个方法。大家有什么办法吗?请指教

#ifndef  _APP_DELEGATE_H_
#define  _APP_DELEGATE_H_

#include "CCApplication.h"

#import 

/**
@brief    The cocos2d Application.

The reason to implement with private inheritance is to hide some interface details of CCDirector.
*/
class  AppDelegate : private cocos2d::CCApplication
{
public:
    AppDelegate();
    virtual ~AppDelegate();

    /**
    @brief    Implement CCDirector and CCScene init code here.
    @return true    Initialize success, app continue.
    @return false   Initialize failed, app terminate.
    */
    virtual bool applicationDidFinishLaunching();

    /**
    @brief  The function is called when the application enters the background
    @param  the pointer of the application instance
    */
    virtual void applicationDidEnterBackground();

    /**
    @brief  The function is called when the application enters the foreground
    @param  the pointer of the application instance
    */
    virtual void applicationWillEnterForeground();
};

#endif // _APP_DELEGATE_H_

```

help :12:

兄弟在吗?您QQ是多少?想请教您个问题。我QQ 860282490

建议楼主先 看看 objectivec 学学ios 这些都是很基础的问题