Welcome! Log In Create A New Profile

Advanced

reusing classes

Posted by morris 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
reusing classes
July 07, 2007 11:31PM
hello

Please can someone help m with this, or tell me where I can find my answers.
With classes you have defined yourself that you would like reuse, do you have to include the interface, implementation etc. in the project it is being used in or can it be included like a pre-defined class e.g #include<string>.

Thanks
Anonymous User
Re: reusing classes
August 06, 2007 11:03AM
No interface, implementation etc, but instead change the client program to one which suites you(i.e: the only file that contain the main function)
Re: reusing classes
October 12, 2007 07:32AM
You would firstly need to include the file in your current project and then include the directive #include ".\myClass.h" - assuming that myClass.h is the header file for your class, and that it resides within the same folder as your current project files.
Sorry, only registered users may post in this forum.

Click here to login