Viktor的Fortran手记之二 从FORTRAN到Fortran

Viktor posted @ Jul 28, 2008 12:13:27 AM in FORTRAN with tags fortran Viktor , 2528 阅读

(接上回……)

话说搞到了编译器之后,才发现全是F90的编译器。而且在科学界使Fortran的人也不少。据说Fortran在数值算法里也比C快一点。从77改成90吧。大字的FORTRAN也改成了小字的Fortran.

编译器嘛,是IFC和CFC。CFC太老了,95年的,很怀旧,但是在Vista下好歹还能正常工作,除了没办法运行和调试之外。IFC要嵌入到VS里用。Compaq也出过一版VFC,那个要嵌到VS 6里的,偶没装VS 6,当然要报错啦……

续行一律用&。什么第6列用+的办法,恐怕已经土偶了吧……

所谓Vector Subscription和Segment很有意思。然则CFC对Segment的处理不是很好。

do 9, **** 之类的文法已经obsolute了……同样还有character*9之类。

比C省事的地方是数组可以整个处理。还有Implied DO,也是个很好的特性。

其实VB的一些特性和Fortran是相通的。比如块结构的IF。

做C太久了,写if的时候总是忘then.

还有C里{}搞定的东西在Fortran中却要有专门的符号……

 

搞来了编译器,做了课本上的几个题目。要尝试一下Windows开发。

 

 

Avatar_small
+2 Exam Pattern 2024 说:
Feb 13, 2023 02:59:44 PM

The Board of Higher Secondary Education will announce the 12th Exam Pattern 2024 for all streams. Private and regular students can now go to the Board's official website to receive the 12th Blueprint 2024, which includes all topics including science, business, and art. +2 Exam Pattern 2024 Candidates interested in the Board intermediate Latest Blueprint 2024 should get in touch with us for the most up-to-date information.

Avatar_small
truecaller en ligne 说:
Jul 13, 2023 10:03:36 PM

Nous avons tous reçu un appel d’un numéro inconnu ou d’un appelant indésirable à un moment donné de notre vie. Et au fil du temps, le besoin de connaître l’identité de l’appelant se renforce. truecaller en ligne gratuit Le portail Truecaller fournit une recherche de numéro de téléphone en ligne sur sa plate-forme, et nous sommes là pour vous aider et c’est entièrement gratuit.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter