[Courses] [C] Lesson Three: Basic Declarations & Expressions

KWMelvin kwmelvin at intrex.net
Thu Oct 10 11:31:35 EST 2002


So what you're saying here is that the standard header files
should be listed before local header files, in this order:

 #include <stdio.h>     /* Standard C Library header file */
 #include "myheader.h"  /* contains my declarations, etc. */

I do not know what an #ifdef is.  Would you mind elaborating
on that?  We'll get into the C Preprocessor in Chapter 9 of
the book, but I don't see how it could hurt to learn something
about it now? Thanks in advance. -- K

On Thu, Oct 10, 2002 at 11:12:35PM +0800, Eugene Teo wrote:
> <quote who="KWMelvin">
> u> On Thu, Oct 10, 2002 at 06:14:26PM +0300, Anca M. Holban wrote:
> u> #include "myheader.h"  /* contains my declarations, etc. */
> u> #include <stdio.h>     /* Standard C Library header file */
> 
> correction. always include after standard headers.
> also, do #ifdef etc, to make sure it is not declared more than once.
> 
> Eugene



More information about the Courses mailing list