Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://mavr.sao.ru/hq/sts/linux/book/c_marshall/chapter2_17.html
Дата изменения: Unknown Дата индексирования: Fri Dec 28 20:36:32 2007 Кодировка: Поисковые слова: m 106 |
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: