Fortran Coder

查看: 8047|回复: 4
打印 上一主题 下一主题

[面向对象] Fortran2003面向对象如何将变量声明成静态的?如何写构造方...

[复制链接]

490

帖子

4

主题

0

精华

大宗师

F 币
3298 元
贡献
1948 点

水王勋章元老勋章热心勋章

楼主
发表于 2017-5-10 22:11:41 | 显示全部楼层
即使是C++对于static也有两种解释
  • Static or thread storage duration and internal linkage
  • Declares a static data member or member function
前者的话,用module封装parameter变量就行
对于Fortran面向对象编程,请参考下面两个开源项目,能吃透任意一个,恭喜lz的fortran编程功力已经跻身中国大陆地区的前5%行列
szaghi/FLAP: Fortran command Line Arguments Parser for poor people
https://github.com/szaghi/FLAP
wavebitscientific/functional-fortran: Functional programming for modern Fortran
https://github.com/wavebitscientific/functional-fortran
您需要登录后才可以回帖 登录 | 极速注册

本版积分规则

捐赠本站|Archiver|关于我们 About Us|小黑屋|Fcode ( 京ICP备18005632-2号 )

GMT+8, 2024-5-6 23:19

Powered by Tencent X3.4

© 2013-2024 Tencent

快速回复 返回顶部 返回列表