Fortran notes, Overloading & custom operators & inheriting Module

Reference: Peng Guolun: Fortran 95 programming, 2002, Chapter 11 catalogue 1. overload 2. User defined operator 3. Inherit Module 1. overload Concept: functions with the same function name but different parameter types and numbers. The program will automatically decide which function to call according to the input parameters. Implementa ...

Added by runawaykinms on Sat, 19 Feb 2022 23:40:09 +0200

Fortran77 expressions and assignment conditions and loop statements

preface Fortran77 expressions and assignments 1, Expression 1. Constant expression Constants are the simplest expressions. There are six constants, corresponding to six data types. constantdata typeInteger1, 0, -100, 32767, +15( ± 2 ...

Added by Isomerizer on Thu, 17 Feb 2022 19:42:17 +0200

Fortran syntax Chapter 4 functions

Chapter 4 functions (4.1) subroutine program main implicit none call hello() end program main subroutine hello() implicit none write(*,*) "Hello!" return end subroutine hello The difference between the subroutine and the main program is that the program code of the main program will be executed automatically at the b ...

Added by Pete on Thu, 06 Jan 2022 03:20:44 +0200