> ...  Like why does every file in C start with #! include?

These are the necessary header files for some of the functions your program
will be using.  C requires that functions be declared prior to being used
and this takes care of the necessary declarations by letting your program
know where to find the declarations.  Pardon me for presuming but it sounds
like you could server yourself well by study C programming either before or
as you attempt to use the Wrox book.  A good text for C, IMHO, is 'C++
Primer Plus' by Stephen Prata from Waite Group Press.  The Wrox book you
cite is excellent but does presume the reader has a working knowledge of C
programming.

> Also I am going to try emacs.  Do I need to learn elisp to do
> shell programming, which the book covers, or can I still use
> (I think) C?

Emacs is simply a text editor for your purpose.  And shell programming is
not C programming but the process of creating a script that your command
shell, usually Bash, interprets one line at a time to perform what ever
commands you have written.  You appear to be confusing shell scripting with
the writing of executable programs.  In that case, the '#' is used to
comment lines you don't want the computer to run.  The '#!' is more commonly
seen when running Perl scripts and is of the form '#! /usr/bin/perl' to let
the command shell to know to use Perl to interpret the code and gives the
location if will find Perl.


Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.

Reply via email to