![](https://img-blog.csdnimg.cn/20190927151117521.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Fortran 学习日记
Fortran
天外来客Jonty
超越过去,一切自今日始
展开
-
Fortran 报错 error LNK2005: _MAIN
报错截图:原因是:一个项目里面只能有一个主程序,任意去掉一个.90文件就好了![在这里插入图片描述](https://img-blog.csdnimg.cn/20200907160139565.png#pic_center【新手求助】error:LNK2005:_MAIN_already defined in xxxx...原创 2020-09-07 16:02:59 · 957 阅读 · 1 评论 -
Fortran 算例
program cylinder !给主函数起个名字! Calculate the area of a cylinder.! Declare variables and constants.! constants=pi! variables=radius squared and heightimplicit none ! 要求所有变量都被明确定义!这个一般都是要写上的。下面会进一步说明。integer :: ierr !定义整型变量character :: yn !定义字符串r原创 2020-09-07 16:40:15 · 2046 阅读 · 0 评论