Aller au contenu

Photo

writing and including header files.


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
gordonbrown82

gordonbrown82
  • Members
  • 544 messages
let's say i just wanted to make the most basic function in one _h file and then use that function in another script, what would i have to do?

#2
FergusM

FergusM
  • Members
  • 460 messages
#include "headerfilename_h"

...

functionname();

The header file does not need to have a main method, though it will give you an error message when you save it as it tries to compile when saving it by default.

Modifié par FergusM, 04 avril 2010 - 02:05 .