🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #3411

Re: help for C novice with sozobon

#3411
From: Michael B. Vederman
Date: Sun, 27 Aug 1989 04:12
31 lines
1424 bytes
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:
>#include <stdio.h>
>main()
>{
>printf("hello world, its me!!!\n");
>}

[Stuff deleted]

>Peter.
>(usermeso@mtsg.ubc.ca   or usermeso@ubcmtsg.bitnet)

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>

- mike

-- 
------------------------------------------------------------------------------
Double Click Me | Double Click Software | P.O. Box 741206 | Houston, Tx, 77274
------------------------------------------------------------------------------
Support BBS: (713)944-0108 | SHADOW | DC FORMATTER | DC UTILITIES | and others
Technical Details
Message-ID: <845@uhnix2.uh.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!usc!apple!sun-barr!texsun!texbell!uhnix1!uhnix2!uace0
References: <1758193@mtsg.ubc.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!usc!apple!sun-barr!texsun!texbell!uhnix1!uhnix2!uace0
From: uace0@uhnix2.uh.edu (Michael B. Vederman)
Newsgroups: comp.sys.atari.st
Subject: Re: help for C novice with sozobon
Message-ID: <845@uhnix2.uh.edu>
Date: 27 Aug 89 04:12:05 GMT
References: <1758193@mtsg.ubc.ca>
Reply-To: uace0@uhnix2.UUCP
Organization: University of Houston
Lines: 31