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

Поисковые слова: п п п п п п п п п п п п п п п п п п п п п п п п п п р п р п р п р п р п р п р п р п р п р п р п р п
Writing Larger Programs



Next: Header files Up: Programming in C Previous: Exercises

Writing Larger Programs

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:



Dave.Marshall@cm.cf.ac.uk
Wed Sep 14 10:06:31 BST 1994