Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!agate!shelby!portia!hanauma!jon From: jon@hanauma (Jon Claerbout) Newsgroups: comp.edu Subject: Scientific programming in C++ Message-ID: <3150@portia.Stanford.EDU> Date: 25 Jun 89 01:53:26 GMT Sender: USENET News System Reply-To: jon@hanauma (Jon Claerbout) Organization: Stanford University, Dept. of Geophysics Lines: 23 ABSTRACT: I converted some simple scientific Fortran/Ratfor programs into C++ to see if they would look suitable for a textbook such as my last book "Imaging the Earth's Interior". I conclude C++ is about as good as ratfor. Unfortunately, mixing Fortran with C++ ranges from undocumented to impossible. BOOK REPORT The Lippman C++ book looks like a replacement for the Stroustrup book since it fully describes the new AT&T version 2.0. Pedagogically it is a big improvement too. Since both Stroustrup and Lippman describe both C and C++ I infer they mean eventually to replace C by C++ (else why the 100+ extra pages to explain C which K&R already do beautifully)? A section called "linkage to other languages" mentions C but not Fortran. PROGRAMS We couldn't link gnu C++ mains to fortran subroutines. I converted some simple fortran scientific programs to a C++ style designed to please fortran users and I posted them to comp.lang.fortran