Fortran77中文帮助教程
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
tran77 结构化程序设计
第一章 FORTRAN语言程序设计初步...................................................................................................1 1.1 FORTRAN语言发展概况..........................................................................................................1 1.2 简单的FORTRAN程序分析......................................................................................................1 1.3 FORTRAN 源程序的书写格式................................................................................................1 1.4 Fortran程序的编辑与运行 ........................................................................................................1 1.5 常 量 ..........................................................................................................................................1 1.5.1 整型常量 .........................................................................................................................1 1.5.2 实型常量 .........................................................................................................................1 1.6 变 量 ..........................................................................................................................................2 1.6.1 变量的概念 .....................................................................................................................2 1.6.2 变量名 .............................................................................................................................2 1.6.3 变量类型 .........................................................................................................................2 1.7 Fortran内部函数 ........................................................................................................................2 1.8 Fortran算术表达式 ....................................................................................................................3 1.8.1 算术运算符和运算优先级 .............................................................................................3 1.8.2 表达式运算中的类型问题 .............................................................................................3 1.8.3 运算的误差问题 .............................................................................................................3 1.9 赋值语句 ....................................................................................................................................3 1.10 简单输出语句 ..........................................................................................................................3 1.11 简单输入语句 ..........................................................................................................................4 1.12 PARAMETER语句 ..................................................................................................................5 1.13 END,STOP,PAUSE语句 ....................................................................................................5 总结 ...................................................................................................................................................5
第三章 循环结构的实现 .........................................................................................................................8 3.1 用GOTO语句实现循环 .............................................................................................................8 3.2 用DO语句实现循环 ..................................................................................................................8 3.3 当型循环的实现 ........................................................................................................................9 3.4 直到型循环的实现 ....................................................................................................................9 3.5 几种循环形式的关系和比较 ....................................................................................................9
第四章 FORTRAN的数据结构.............................................................................................................10 4.1 程序中的数据结构 ..................................................................................................................10 4.2 双精度数据类型 ......................................................................................................................10 4.3 复型类型数据 ..........................................................................................................................10 4.4 四种数值型数据之间的转换和运算 ......................................................................................10 4.5 字符型数据 ..............................................................................................................................10
第二章 逻辑运算和选择结构 .................................................................................................................6 2.1 引 言 ..........................................................................................................................................6 2.2 关系表达式 ................................................................................................................................6 2.3 逻辑表达式 ................................................................................................................................6 2.4 用块 IF 实现选择结构.............................................................................................................6 2.5 逻辑IF语句.................................................................................................................................7 2.6 算术IF语句.................................................................................................................................7
第一章 FORTRAN语言程序设计初步...................................................................................................1 1.1 FORTRAN语言发展概况..........................................................................................................1 1.2 简单的FORTRAN程序分析......................................................................................................1 1.3 FORTRAN 源程序的书写格式................................................................................................1 1.4 Fortran程序的编辑与运行 ........................................................................................................1 1.5 常 量 ..........................................................................................................................................1 1.5.1 整型常量 .........................................................................................................................1 1.5.2 实型常量 .........................................................................................................................1 1.6 变 量 ..........................................................................................................................................2 1.6.1 变量的概念 .....................................................................................................................2 1.6.2 变量名 .............................................................................................................................2 1.6.3 变量类型 .........................................................................................................................2 1.7 Fortran内部函数 ........................................................................................................................2 1.8 Fortran算术表达式 ....................................................................................................................3 1.8.1 算术运算符和运算优先级 .............................................................................................3 1.8.2 表达式运算中的类型问题 .............................................................................................3 1.8.3 运算的误差问题 .............................................................................................................3 1.9 赋值语句 ....................................................................................................................................3 1.10 简单输出语句 ..........................................................................................................................3 1.11 简单输入语句 ..........................................................................................................................4 1.12 PARAMETER语句 ..................................................................................................................5 1.13 END,STOP,PAUSE语句 ....................................................................................................5 总结 ...................................................................................................................................................5
第三章 循环结构的实现 .........................................................................................................................8 3.1 用GOTO语句实现循环 .............................................................................................................8 3.2 用DO语句实现循环 ..................................................................................................................8 3.3 当型循环的实现 ........................................................................................................................9 3.4 直到型循环的实现 ....................................................................................................................9 3.5 几种循环形式的关系和比较 ....................................................................................................9
第四章 FORTRAN的数据结构.............................................................................................................10 4.1 程序中的数据结构 ..................................................................................................................10 4.2 双精度数据类型 ......................................................................................................................10 4.3 复型类型数据 ..........................................................................................................................10 4.4 四种数值型数据之间的转换和运算 ......................................................................................10 4.5 字符型数据 ..............................................................................................................................10
第二章 逻辑运算和选择结构 .................................................................................................................6 2.1 引 言 ..........................................................................................................................................6 2.2 关系表达式 ................................................................................................................................6 2.3 逻辑表达式 ................................................................................................................................6 2.4 用块 IF 实现选择结构.............................................................................................................6 2.5 逻辑IF语句.................................................................................................................................7 2.6 算术IF语句.................................................................................................................................7