Mail Archives: djgpp/1997/04/30/07:15:02
This question needs some very basic help. Get a *Good* book on C
programming. That will fix most of your problems. I don't sugest playing
with c++ untill you have a full grasp on C. Yes, I know you can learn
C++ first but in my experience "most" of the time for "most" people it
is better to learn C first (or even pascal).
Run this program. If it won't work then your config is messed.
-------[code]----------
#include <stdio.h>
int main()
{
printf("Hello World.");
return 0;
}
------[end code]-------
Then from your command line:
gcc -o hello.exe hello.c
That is the "correct" way to do it (if your source file is called
hello.c).
As for programming ideas.... wait, they will come. Once you're used to
thinking in C (or what ever language you uses) the ideas will just start
flown'.
If you search the mail archives you'll find that not too long ago there
were a couple of threads going on where you could find C tutorials on
the net.
Good luck,
Skye
- Raw text -