[SDL] headers.....directives
Eddy Cullen
eac203 at ecs.soton.ac.uk
Fri May 9 03:05:30 PDT 2008
Hi,
Welcome to the world of C programming!
"Give a man a computer and you'll frustrate him for a day, teach him to
program and you'll frustrate him for LIFE!"
If you're serious about learning to write C, invest in a copy of "The C
Programming Language" by Kernighan & Ritchie ISBN 0131103628. Will set
you back about £20 / $40; money well-spent.
You may find that some compilers will complain if you write:
int main(int argc, char *argv[])
try
int main(int argc, char **argv)
instead (they actually mean the same). You don't actually need the
parameters, unless you're going to use them; when starting out, it is
perfectly acceptable to write:
int main()
but not
int main(void)
as this has a different meaning.
Jitsu Love,
Eddy
bobbybostick wrote:
> when I begin a program I start with....
>
> #include SDL.h
>
>
> int main()(int argc, char*, arvg[])
>
> {
>
>
> but always get an error saying SDL.h is not in the series.....does anyone have
> a theory on this.
>
> Bobby.
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
More information about the SDL
mailing list