including cpp files

Is it possible to #include cpp files? I have a class and its header file is class.h. The definitions are in classdef.cpp. The main program is in program.cpp. In my program.cpp source, is it possible to say #include "classdef.cpp" along with #include "class.h" ?? Thankyou


Comments

  • : Is it possible to #include cpp files? I have a class and its header file is class.h. The definitions are in classdef.cpp. The main program is in program.cpp. In my program.cpp source, is it possible to say #include "classdef.cpp" along with #include "class.h" ?? Thankyou

    YES





Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories