Question about C++ (please, answer)

Hi, everyone.
I have a simple (or complex) c++ question.
The below source code do not be compiled and make errors.
I really don't know why. Maybe I'm too foolish -_-;
I'll wating for your answering. Thanks so much.
/****** begin of source ******/
class Widget
    void draw() {}
    int _i;
class Button : public Widget
    void draw()
void main() {}
/******* end of source ********/
I think that it's a compiler (internal) problem. 
I compiled it with VC++ and GCC but All failed.
I think that the problem comes from accessing of type-casted 'this' 
But I don't know exactly.
Happy new year.

Next Community 신비로
무료 메일, 무료 홈페이지


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]