Javi <mispamaki@_ANTI-SPAM_ya.com> writes:
[color=blue]
> I have some doubts about what is the best method to distribute classes in .cpp and .h files:
>
> - Should I use a file per class? or should I group similar classes in one file?
> - Is it good to put a lot of class declarations in the same .h, and their definitions in different .cpps?
> - And, to the contrary, many definitions in one cpp and declarations in different .h?[/color]
Personaly I put one class prototype in one .h (myclass.h for ex) and 1
description of 1 class in 1 cpp (myclass.cpp for example)
[color=blue]
> - How to deal with precompiled headers? is it ok to include all
> headers in the precompiled header and include it everywhere you need?.
> - What impact does all this have in the executable size (if any)?[/color]
Nothing, because when the compiler works, you can imagine it works on
one bigger file whow contains all your files (it's very imaging)
[color=blue]
> - Is there any document or URL with advice on all these?.
>
> Thank you,
>
> Javier Sanz.[/color]
Sorry for my english, if you have the time and if you are brave, don't
hesitate to correct me, thx ;)
Bye
--
e-Jah
L'expansion de l'univers est un coredump en cours...
(
http://quadaemon.free.fr/tribune.fortune)