Classes

This is a discussion on Classes within the C++ Programming forums, part of the General Programming Boards category; Code:
class painter {
virtual void paint();
};
painter p;
p->paint();
This wouldn't work. :/ Could you tell me why?
...