Re: method in different cpp file
On Feb 26, 4:22pm, carmelo <carmelo.abr...@gmail.com> wrote:
> 'Hi,I need to use in main.cpp, a method that is defined in
> another .cpp file. How can I do it?
You can use header file , source file approche.
Declare the function in the header file and provide the defination in
the source file.
Include this header file using #include statement in the main.cpp.
|