enum_4.f90
来自「linux下编程用 编译软件」· F90 代码 · 共 20 行
F90
20 行
! Program to test the default initialisation of enumerators inside different program unitmodule mod implicit none enum, bind (c) enumerator :: red , yellow, blue enumerator :: green end enumend module modprogram main use mod implicit none if (red /= 0 ) call abort if (yellow /= 1) call abort if (blue /= 2) call abort if (green /= 3) call abortend program main
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?