Viktor的FORTRAN手记之一 引子

Viktor posted @ Jun 25, 2008 10:42:50 AM in FORTRAN with tags Viktor fortran , 2799 阅读

Viktor其实也刚刚入门……要不是做科学,纯开发的话Viktor一辈子也不会碰这东西……先说说FORTRAN和C不一样的几个地方吧……目前Viktor还停留在纸上谈兵的阶段,因为暂时找不到Vista下好用的FORTRAN编译器……最近几天也在一直找。经典的Visual Fortran就是不和Vista兼容……总不能因为这点破事开个虚拟机吧……卡到在其次,怕的主要是发热。

  1. 不用打;以结束语句。
  2. 实用的语句要空六格。也就是说,得打上六个空格才能开门见山……好像也不要写到70列还是什么的……续行怎么续来着?
  3. 行首打*表示注释。
  4. 程序的第一行一定是
    program ooxx
  5. 做完的时候还得
    stop

    end
  6. 调用子程序要
    call xxoo
  7. 子程序还得写成
    subroutine xxoo
        ...
        return
    end
  8. 打印居然要加个"*,",还得用print,而且更神奇的是自动换行。
  9. 名字不许超过6个字母。
  10. 传统中的I~N规则……I,J,K,L,M,N打头的是整数……
  11. 有乘方运算符……然则要写成**……
  12. 除法取整时一律向下取整。
  13. DO循环要写出CONTINUE的行号……DO 100 I=1,5
  14. 整数叫integer
  15. 字符串和字符居然一样……声明要写
    character*5 ooxxx
  16.  更强大的是居然用单引号围住字符串(而不是C中的双引号)……
Avatar_small
10th Model Question 说:
Feb 12, 2023 03:04:56 PM

We will update this page as soon as the Board 10th High School Model Question Paper 2024 Download Link becomes accessible online. understudies In the New Window, you must download High School Question Paper 2024 in Pdf Format. 10th Model Question Paper 2024 Save the PDF file to your PC. Similarly, in order to attend the 10th Final Exams, print down the 10th Important Question Paper 2024.


登录 *


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