On Fri, 12 Jun 2009 20:22:16 +0200, Darren New <dne### [at] sanrrcom> wrote:
> Isn't it legal to put a class declaration in the same .cpp file where
> you define its member functions and the main() that's the only routine
> that uses it?
You can put the entire program in a single file if you want.
> When I did that, I got errors about not being able to find the vtable
> for the class.
Possibly some internal compiler problem (which might be triggered by a
syntactical problem in your code).
> Is #include supposed to work just like a textual include?
Yes.
--
FE
Post a reply to this message
|