jon@hanauma (Jon Claerbout) (06/25/89)
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