Afficher un message
Vieux 26/02/2008, 15h00   #5
nurxb01
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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.

  Réponse avec citation
 
Page generated in 0,05942 seconds with 9 queries