c++ - One class with multiple implementation files -
Has a square (an .h) applied to more than one source files? I realize that this may be a sign of too much code in the same class, but is it technically incorrect?
For example:
Foo.h
square fu {zero read (); Type zero (); Zero Run (); }
Foo.Read.cpp
#include "Foo.h" void Foo :: read () {}
Foo.Write.cpp
#include "Foo.h" void Foo :: Write () {}
Foo.Run CPP
#include "Foo.h" void Foo :: run () {}
it's okay. In the end, it will all be linked together.
I also saw the code, where each member function was in a different * .cpp file.
Comments
Post a Comment