How To Include A Template In Another Cpp File
You lot are using an out of date browser. It may not display this or other websites correctly.
Yous should upgrade or employ an alternative browser.
Yous should upgrade or employ an alternative browser.
- Forums
- Other Sciences
- Programming and Calculator Science
C++: Calling part in main.cpp from another .cpp file
- C/++/#
- Thread starter JonnyG
- Start appointment
I am trying to call a function declared in a .hpp file and defined in the corresponding .cpp file, from my master.cpp file, but I keep getting an error. From what I accept googled it seems as if I am doing this the right fashion, and so I was hoping you guys could help out. Here'south my code:
#ifndef CHAP_HPP #define CHAP_HPP class Chap { public: double absoluteVal (double n) ; unsigned fact (unsigned due north) ; };
Subscribe to:
Post Comments (Atom)
0 Response to "How To Include A Template In Another Cpp File"
Post a Comment