www.delorie.com/archives/browse.cgi | search |
From: | "Al Morgan" <muaddib AT proaxis DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: building header files with rhide |
Date: | Mon, 6 Dec 1999 14:51:35 -0800 |
Organization: | Posted via Supernews, http://www.supernews.com |
Lines: | 36 |
Message-ID: | <s4of7qcuqeg32@corp.supernews.com> |
References: | <82gi60$pqd$1 AT wanadoo DOT fr> |
X-Complaints-To: | newsabuse AT supernews DOT com |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.2314.1300 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2314.1300 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
It's quite simple, really, just put the function into a file, say "myfunc.h", such as: // myfunc.h void print_hi() { cout << "hi"; } // end myfunc.h Save it to the same directory that you put your C program in, and put: #include "myfunc.h" in it. Note the quotation marks are used instead of the <>s, when quotes are used, the compiler looks in the current working directory for the header files. Al Morgan [ muaddib AT proaxis DOT com ] regis.dupuy <regis DOT dupuy AT wanadoo DOT fr> wrote in message news:82gi60$pqd$1 AT wanadoo DOT fr... > Hi > I program in c with rhide and I'm a beginner > how should I do to build my header files (name.h) to use functions I have > made in other programs without typing them again > I would be glad if someone could give me one example > (like making myfunc.h with a clear screen function in it or another one) > or show me a tutorial > regis DOT dupuy AT wanadoo DOT fr > >
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |