Article View: comp.sys.atari.st
Article #3508Re help for a novice C programmer
From: Ivan D. Reid
Date: Tue, 29 Aug 1989 08:17
Date: Tue, 29 Aug 1989 08:17
31 lines
1313 bytes
1313 bytes
*FRIVOLITY ON*
In article <1758193@mtsg.ubc.ca> Peter_Lawrence_Jackson@MTSG.UBC.CA writes:
>Help! I am a fortran programmer trying to learn C using the sozobon/dlibs
>package. I can't get the compiler to work on the following hello world
>program:
Does anything work in Vancouver in the summertime?
>#include <stdio.h>
>main()
>{
>printf("hello world, its me!!!\n");
>}
and Mike Vederman replied
>Silly you! Of course you can't compile the program. The proper syntax for this
>program is:
>main() {
> printf("hello world\n");
>}
>(Note most compilers check to make sure that is all you can print 'hello
>world') <grin>
Actually, I think it's refusing to compile because of the spelling
error! (or: Its refusal to work is due to the spelling error (B-{) Would that
the mailer refused to send all the messages using "its" for "it's" and vice
versa...
idr
(PS say Hi to all the frivollers on Forum for me, Peter)
*FRIVOLITY OFF*
Technical Details
Message-ID:
<307*ivan@rzsin.sin.ch>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!ucbvax!rzsin.sin.ch!ivanShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!ucbvax!rzsin.sin.ch!ivan From: ivan@rzsin.sin.ch (Ivan D. Reid) Newsgroups: comp.sys.atari.st Subject: Re help for a novice C programmer Message-ID: <307*ivan@rzsin.sin.ch> Date: 29 Aug 89 08:17:05 GMT Organization: The Internet Lines: 31