Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://jet.sao.ru/hq/sts/linux/book/c_marshall/chapter2_17.html
Дата изменения: Unknown Дата индексирования: Tue Oct 2 09:01:42 2012 Кодировка: Поисковые слова: manicouagan crater |
This Chapter deals with theoretical and practical aspects that need to be considered when writing larger programs.
When writing large programs we should divide programs up into modules. These would be separate source files. main() would be in one file, main.c say, the others will contain functions.
We can create our own library of functions by writing a suite of subroutines in one (or more) modules. In fact modules can be shared amongst many programs by simply including the modules at compilation as we will see shortly..
There are many advantages to this approach: