c++반전 이용 sink 예제

1289 단어 c + +리 턴sink

// cbBysink.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "cbBysink.h"

/************************************************************************/
/*                                                            */
/************************************************************************/

class CMyWork : public baseCallBack
{
public:
    CMyWork()
    {
        //
        CWork::registercallback(this);
    }
    //
    void CallbackFunction(int a, int b)
    {
        cout << "a = " << a << ",b = " << b << "
" << endl;
        return;
    }
    //
    void makefunction(int a, int b)
    {
        CWork::makecallback(a, b);
        return;
    }
protected:
private:
};

int main(int argc, char* argv[])
{
    CMyWork c_mywork;

    //
    c_mywork.makefunction(5, 6);

    return 0;
}

좋은 웹페이지 즐겨찾기