hey,
it's me again, i need help with creating a header file for some functions so that i can use the functions in some other programs....
for example a header file that will include the function prototypes that i can access... I need the syntax for it.....:)
addicted 0 Junior Poster in Training
Recommended Answers
Jump to Post// header_file.h #ifndef header_file #define header_file void function1(); void function2(); #endif ////// // function_file.cpp #include "header_file.h" void function1() { // .... } ////// // main.cpp #include "header_file.h" int main() { function1(); return 0; }
All 3 Replies
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
addicted 0 Junior Poster in Training
John A 1,896 Vampirical Lurker Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.