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

Kenneth Ng ken at njitcccc.UUCP
Tue Jun 3 00:46:45 AEST 1986


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
	    bitnet(prefered) ken at njitcccc.bitnet

New Jersey Institute of Technology
Computerized Conferencing and Communications Center
Newark, New Jersey 07102

Vulcan jealousy: "I fail to see the logic in prefering Stonn over me"
Number 5: "I need input"



More information about the Comp.lang.c mailing list