Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!csd4.milw.wisc.edu!bionet!agate!shelby!portia!hanauma!jon From: jon@hanauma (Jon Claerbout) Newsgroups: comp.lang.c++ Subject: Scientific programming in C++ ? Message-ID: <3146@portia.Stanford.EDU> Date: 25 Jun 89 00:02:01 GMT Sender: USENET News System Reply-To: jon@hanauma (Jon Claerbout) Organization: Stanford University, Dept. of Geophysics Lines: 24 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 I got the Lippman C++ book. It 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