Mail Archives: djgpp/1996/09/01/05:17:45
John M. Aldrich <fighteer AT cs DOT com> wrote in article
<32289180 DOT 543D AT cs DOT com>...
> Matthews wrote:
> >
> > puts( "-------MY PROGRAM WORKS!------");
ooopppssssss....I just tried "puts" and then I tried "printf" and both of
them are working! I usually use printf when I use C. So, my first advice
to you may not have been helpful to use printf instead of puts.
> P.S.: I won't go into it now, but 'void main()' is not the right way to
> define main. If that's what your book recommends, I'd get a better one.
>
That is how it is taught in many schools John, in introductory C++ CS
courses! To the point that it is mentally engrained!
M
--
Maan M. Hamze
mmhamze AT mail DOT utexas DOT edu
http://leb.net/~mmhamze
- Raw text -