On 11/1/05, A.G. <prothonotar(a)tarnation.dyndns.org> wrote:
On Mon, 2005-10-31 at 21:03 +0200, Dotan Cohen wrote:
> I'm just getting started in programming C. My first attempt:
> #include < stdio.h>
> void main () {
> printf("\nHello World!\n");
> }
>
Doltan,
I see long discussions about stuff. In case no one has actually answered
your question, the problem is you have a space between "<" and
"stdio.h"
and so the compiler is looking for a while with an embedded space in it.
Get rid of that space and your program should compile (though you'll get
some of the same warnings).
Thanks, actually, it was answered several times! I removed the space
and made some other changes that were suggested here, and it compiled.
I also enjoyed the discussion regarding int vs. void and properly
returning a 0 after the function ends. I should get to class a little
more prepared than the next guy! Thank you all!
Dotan
http://english-lyrics.com/el/band.php/377/Nine%20Inch%20Nails