[Courses] hello world program

Eli Therese Moseid honeypot at online.no
Fri Feb 8 22:45:07 EST 2002


Hi

You gotta run it too, if you haven't done it..
./hello

ET.

On Fri, 2002-02-08 at 19:35, Janet Vincent wrote:
> Hi Everyone,
> 
> Ok I am already confused. The book says to mkdir hello then cd hello open an editor so I opened vim and type the following
> 
> #include <stdio.h>
> int main()
> {
>     printf ("Hello World\n");
>     return (0);
> }
> 
> that's it. then compile the code with cc -g -ohello hello.c
> 
> I did this and it doesn't work. Do you have to have a line at the top to make it work like with shell scripting? Or is that something just understood and I missed it? I am using mandrake 8.1 and I'm not sure what I am doing wrong.
> 
> Thanks for your help. I hope to get this stuff soon.
> 
> Janet (-:
-- 
 -----

All the best,        -o)
Eli Therese Moseid   / \
honeypot at online.no  _\_v




More information about the Courses mailing list