C vs. FORTRAN (was: What should be added to C)

Daniel R. Levy levy at ttrdc.UUCP
Wed Jun 4 08:20:23 AEST 1986


In article <178 at njitcccc.UUCP>, ken at njitcccc.UUCP (Kenneth Ng) writes:
>In article <477 at cubsvax.UUCP>, peters at cubsvax.UUCP (Peter S. Shenkin) writes:
>> In article <bentley.853> kwh at bentley.UUCP (KW Heuer) writes:
>> I agree;  on the other hand, what C has over FORTRAN in this regard is the
>> ability to keep writing on the same line in subsequent calls to printf();
>> that is, to *not* insert a newline after WRITEing.
>Try looking up what the "+" in column 1 does in the format.
>It supresses the carriage advance.  The nestablility of the
>format enables some very fancy tricks to be used in formating
>output.  In my 18 line fortran game of life I printed the header,
>put stars around the grid, printed the grid, and did a top of form
>on every other generation, using one format and one write statement.
>Kenneth Ng: uucp(unreliable) ihnp4!allegra!bellcore!njitcccc!ken

_18 line_ fortran game of life?  Can you post that (in net.lang.f77 of course)?
-- 
 -------------------------------    Disclaimer:  The views contained herein are
|       dan levy | yvel nad      |  my own and are not at all those of my em-
|         an engihacker @        |  ployer or the administrator of any computer
| at&t computer systems division |  upon which I may hack.
|        skokie, illinois        |
 --------------------------------   Path: ..!{akgua,homxb,ihnp4,ltuxa,mvuxa,
						vax135}!ttrdc!levy



More information about the Comp.lang.c mailing list