delorie.com/archives/browse.cgi | search |
From: | Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: (none) |
Organization: | Pin Eight Software http://pineight.8m.com/ |
Message-ID: | <74ldisot3q1cr508109a4s1eavb7obgp76@4ax.com> |
References: | <20000517204739 DOT 28543 DOT cpmta AT c012 DOT sfo DOT cp DOT net> |
X-Newsreader: | Forte Agent 1.7/32.534 |
MIME-Version: | 1.0 |
Lines: | 30 |
X-Trace: | /ba9QYP2gUeKcdPE9+Lk0GagmFLzdfbyZoypPZuVpJ2601Wxs9tOlLa4aQOiHqtMxBhTJyHVyqrL!CgTezj+AvQQ+/4RKC2MwodNKb5rxAe0eghXyU1Rcl9LESrdx6s8HWXewfmxlNQwJmoM1x1lrwXRG!jih8Te0= |
X-Complaints-To: | abuse AT gte DOT net |
X-Abuse-Info: | Please be sure to forward a copy of ALL headers |
X-Abuse-Info: | Otherwise we will be unable to process your complaint properly |
NNTP-Posting-Date: | Sat, 20 May 2000 18:14:25 GMT |
Distribution: | world |
Date: | Sat, 20 May 2000 18:14:25 GMT |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
You ought to use a better subject line. On 17 May 2000 13:47:39 -0700, frans nagel <fransrn AT altavista DOT com> wrote: >hello Djgpp I have a two more questions, > >sometimes the file with int main gets too long to be practical and I >would like to call non-class functions from main written on a new cpp >page but I don't know how to connect it to main.how do you include non >class cpp pages so main knows where to find the function ? You make a file (called a "header" file) that contains the name of each function and the object types it expects. Then you #include the header in all *.cpp files that use the functions, and you link the .cpp file's object into your executable. All C/C++ compilers support this; you might want to read the C++ faq lists: http://www.cerfnet.com/~mpcline/c++-faq-lite/ http://www.raos.demon.co.uk/acllc-c++/faq.html http://www.faqs.org/faqs/by-newsgroup/comp/comp.lang.c++.html -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |