View Single Post
  #7   Spotlight this post!  
Unread 13-10-2005, 01:13
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Legal to add .c file?

Quote:
Originally Posted by CJO
In fact, (although not the best of programming practices) you can just create an .h file called "include.h," and put all of your other includes in it, and then just include "include.h" in your c files.

The drawback is that every file includes every header, which may not always be desirable, HOWEVER, for beginning programmers, this can simplify the process of "which files do I need to include?"
Many software people consider this to be a very bad practice, and as such I don't advise it, especially for beginning programmers. No sense in starting off by picking up a bad habit.