This wouldn't work. :/ Could you tell me why?Code:class painter { virtual void paint(); }; painter p; p->paint();
Errors:
Code:error C2143: syntax error : missing ';' before '->' error C4430: missing type specifier - int assumed. Note: C++ does not support default-int error C2371: 'p' : redefinition; different basic types 1> see declaration of 'p'