Re: Learning process

From: Joona I Palaste (palaste_at_cc.helsinki.fi)
Date: 01/03/04


Date: 3 Jan 2004 13:19:42 GMT

Karsten Kvistad <karsten-k.broadpark@no> scribbled the following:
> Hi!
> I'm currently teaching myself the C programming language. The problem is
> I don't know what to do next. I know file I/O, pointers, functions and
> the like. I do not know how to make .h files, Makefiles or anything else
> required for large projects. Should I learn how to do this, sockets,
> GTK, curses or what?

Well, .h files are syntactically identical to .c files. The only thing
that is usually different is that .h files should not contain any actual
executable code, only definitions.
Makefiles are not really a C concept. Make is a tool for compiling or
building just about anything. I've used it to make LaTeX documents. You
don't have to use make to compile C. Especially single source file
programs can be compiled just fine with one compiler call.
If I were you I'd look into .h files and makefiles first. Sockets, GTK
and curses are not part of C, they're platform-specific add-ons. It's
important to understand the language itself before tackling those.

-- 
/-- Joona Palaste (palaste@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"I am lying."
   - Anon


Relevant Pages

  • Re: squelch patch.
    ... >>> Thanks very much Timo. ... >>> makefiles, requiring 3 or more multiline changes. ... Compiling working angband gets so much easier when it is ... Why get involved with CVS at all? ...
    (rec.games.roguelike.angband)
  • Re: squelch patch.
    ... >> Thanks very much Timo. ... >> makefiles, requiring 3 or more multiline changes. ... Compiling working angband gets so much easier when it is ... > lcc-win32 and DJGPP (DJGPP runs already, maybe it doesn't use lua, and ...
    (rec.games.roguelike.angband)
  • Re: squelch patch.
    ... >> Thanks very much Timo. ... >> makefiles, requiring 3 or more multiline changes. ... Lua especially. ... Compiling working angband gets so much easier when it is ...
    (rec.games.roguelike.angband)
  • Re: squelch patch.
    ... I've only compiled it for OS X, so a few of the makefiles may be ... Lua especially. ... Compiling working angband gets so much easier when it is ... and DJGPP (DJGPP runs already, maybe it doesn't use lua, and lcc ...
    (rec.games.roguelike.angband)