Re[2]: [Dev-C++] Why would I want to #include a .cpp file?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <ca...@kr...> - 2003-05-20 08:24:37
|
hi,
Tuesday, May 20, 2003, 10:12:29 AM, you wrote:
> Including a cpp file is a bad programming practice.
> However, some guys do it when their source files become to big.
> For instance when you have a source.cpp file of 1000 lines,
> you can split it in source1.cpp and source2.cpp of 500 lines, and
> create source.cpp containing
> #include "source1.cpp"
> #include "source2.cpp"
but why the hell would you do that?
why don't you write a header file for class and/or (public) method
declaration and include that then?
the definitions can be split over as many files as you like only
including the header file.
gruss
/Christian mailto:ca...@kr...
---
I propose that the following character sequence for joke markers:
:-)
19-Sep-82 11:44 Scott E Fahlman
|