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// yourheader.h #ifndef _a_yourheader_included_ #define _yourheader_h_included_ class A { B m_b; C *m_c; D *m_d; public: void SetC(C *c); C *GetC() const; void ModifyD(D *d); }; #endif /************************************/ // yourcpp.cpp void A::SetC(C* c) { m_c = c; } C* A::GetC() const { return m_c; } void A::ModifyD(D* …
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.