fortran compiler environment study notes 1-

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/mao0514/article/details/90017514

Compiler: general compiler itself is a console application (console), there is no interface. Command Line

IDE: Integrated Development Environment for providing application program development environment, typically including code editor, a compiler, a debugger, and the like graphical user interface tools. Such as Microsoft Visual Studio and Code :: Blocks, etc.

Editor: UEStudio 

Intel Visual Fortran 配合 Visual Studio

GFortran with Code :: Blocks

Fixed format: .f .for .fpp language version: f66 f77

Free-form: .f90 .f95 .f2k language version: f90, f95, f2003, f2018, f2015

Development environment: computers, operating systems, compilers,

When installed, vs only C ++ components, ivf only need to install the compiler and integrated vs

First load VS, then ivf.

  ivf installation directory will help with documentation. .chm

Default is single precision.

FIG represents 1.6 single-precision data, 1.6d0 is a double-precision data. Single-precision error, as far as possible can use double precision.

implicit real * 8 (az) instructions from a variable from the beginning to z are floating.

implicit none off the default type of function, all variables are declared in advance.

By default, the first letter I, J, K, L, M, N is considered as an integer type variables, other variables will be used as floats.

ivf help file, all font green label contents are non-standard usage

In ivf Dollar ($) it can also be used for the identifier, and may hyphens; generally begins with the variable $ system variable.

read and write statements comprising at least two parameters, i.e. channel number (unit) and format (fmt):

20,180,908
Run Project

The first step, open the debugging environment (there will be press fitted in the beginning):
The second step, if there is no project, then create a new project;
the third step, the existing fortran file into the project in the
fourth step, built (that is, the compiler);
fifth step, you can execute the program (after running the compiler).

the build menu, compile (compile), connected (build)
under debug menu, run or start debugging is to run

Compile -> Links -> execution
 

rogram main          !程序开始,main是program的名字,可以自定义
write(*,*) "Hello world!"    !主程序
end program main   !end用表示代码编写完毕。其中program main可省。

 

Guess you like

Origin blog.csdn.net/mao0514/article/details/90017514