Path: 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 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 >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') - 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