📄 sec1-5.htm
字号:
lang=EN-US style='font-size:12.0pt;font-family:宋体'>Release</span><span
lang=ZH-CN style='font-size:12.0pt;font-family:宋体'>目录下产生运行速度快的执行文件。也可在</span><span
lang=EN-US style='font-size:12.0pt;font-family:宋体'>DOS</span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体'>窗口下键入</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体'>filename(.exe)</span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体'>,如果键入</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体'>filename > text.txt</span><span
lang=ZH-CN style='font-size:12.0pt;font-family:宋体'>可将输出到屏幕上的内容重定向到文件中。</span><span
lang=EN-US style='font-size:12.0pt;font-family:宋体'><o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:17.0pt;mso-line-height-rule:exactly;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
mso-char-indent-size:12pt'><span lang=ZH-CN style='font-size:12.0pt;font-family:
宋体'>使用</span><span lang=EN-US style='font-size:12.0pt;font-family:宋体'>DOS</span><span
lang=ZH-CN style='font-size:12.0pt;font-family:宋体'>命令行也可建立图标,方法是:开始</span><span
lang=EN-US style='font-size:12.0pt;font-family:宋体'>-></span><span
lang=ZH-CN style='font-size:12.0pt;font-family:宋体'>程序</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体'>->Visual Fortran6->Fortran
Command Prompt</span><span lang=ZH-CN style='font-size:12.0pt;font-family:宋体'>,点击右键</span><span
lang=EN-US style='font-size:12.0pt;font-family:宋体'>-></span><span
lang=ZH-CN style='font-size:12.0pt;font-family:宋体'>属性</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体'>-></span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体'>起始位置窗口中键入目录名,然后将</span><span
lang=EN-US style='font-size:12.0pt;font-family:宋体'>Fortran Command Prompt</span><span
lang=ZH-CN style='font-size:12.0pt;font-family:宋体'>发送到桌面快捷方式,运行时点<span
class=GramE>击</span>图标即可。</span><span lang=EN-US style='font-size:12.0pt;
font-family:宋体'><o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:24.0pt;mso-char-indent-count:2.0;
line-height:17.0pt;mso-line-height-rule:exactly;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
mso-char-indent-size:12pt'><span lang=ZH-CN style='font-size:12.0pt;font-family:
宋体'>在用</span><span lang=EN-US style='font-size:12.0pt;font-family:宋体'>Win32
Debug</span><span lang=ZH-CN style='font-size:12.0pt;font-family:宋体'>选项编译后,可以在程序中设置断点进行跟踪和调试。方法是:光标放在程序中适当位置处,点击断点按钮(小手)以在程序行开头处加上断点,键入</span><span
lang=EN-US style='font-size:12.0pt;font-family:宋体'>F5</span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体'>,在菜单条上将出现</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体'>Debug</span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体'>栏目,按</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体'>F11</span><span class=GramE><span
lang=ZH-CN style='font-size:12.0pt;font-family:宋体'>键开始</span></span><span
lang=ZH-CN style='font-size:12.0pt;font-family:宋体'>自断点起追踪程序运行,将光标移动到变量名上会显现变量的取值,键入</span><span
lang=EN-US style='font-size:12.0pt;font-family:宋体'>Shift</span><span
lang=ZH-CN style='font-size:12.0pt;font-family:宋体'>+</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体'>F5</span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体'>将终止</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体'>Debug</span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体'>,再点<span class=GramE>击</span>断点按钮可取消断点。</span><span
lang=EN-US style='font-size:12.0pt;font-family:宋体'><o:p></o:p></span></p>
<p class=MsoNormal style='line-height:17.0pt;mso-line-height-rule:exactly;
tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span
lang=EN-US style='font-size:12.0pt;font-family:宋体'><o:p> </o:p></span></p>
<p class=MsoNormal align=center style='margin-top:15.6pt;margin-right:0cm;
margin-bottom:15.6pt;margin-left:0cm;mso-para-margin-top:1.0gd;mso-para-margin-right:
0cm;mso-para-margin-bottom:1.0gd;mso-para-margin-left:0cm;text-align:center;
line-height:200%;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span
lang=ZH-CN style='font-size:16.0pt;line-height:200%;font-family:宋体;color:#3333FF'>【作业】</span><span
lang=EN-US style='font-size:16.0pt;line-height:200%;font-family:宋体;color:#3333FF'><o:p></o:p></span></p>
<pre><span lang=EN-US style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:
"Times New Roman";color:#333399;mso-font-kerning:1.0pt'>[1.1] </span><span
lang=ZH-CN style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>下面的程序形式不佳,将其改为简洁可读性强的形式。</span><span
lang=EN-US style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>[<a href="question/1.1.f90">q_1_1.f90</a>]<o:p></o:p></span></pre><pre><span
lang=EN-US style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>[1.2] </span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>指出下列变量<span class=GramE>名是否</span>是合法的</span><span
lang=EN-US style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>F90</span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>变量名:</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'><o:p></o:p></span></pre><pre
style='text-indent:35.4pt;mso-char-indent-count:2.95'><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>(</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>1</span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>)</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>FORTRAN90</span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>(</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>2</span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>)</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>FORTRAN/90</span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>(</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>3</span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>)</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>FORTRAN_90</span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>(</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>4</span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>)</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>90_FORTRAN</span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>(</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>5</span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>)</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>FORTRAN_</span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>(</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>6</span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>)</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>.FORTRAN<o:p></o:p></span></pre><pre><span
lang=EN-US style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>[1.3] </span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>下列各数在</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>F90</span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>中作为常数是否合法,合法的指出其类型,不合法的说出理由。</span><span
lang=EN-US style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'><o:p></o:p></span></pre><pre
style='text-indent:35.4pt;mso-char-indent-count:2.95'><span lang=EN-US
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>28.7<span style='mso-tab-count:1'> </span>287.<span
style='mso-tab-count:1'> </span>27.8E+03<span
style='mso-tab-count:1'> </span>.278E-15<span
style='mso-tab-count:1'> </span>278.00<span
style='mso-tab-count:1'> </span>-287<span style='mso-tab-count:1'> </span>E+14<o:p></o:p></span></pre><pre
style='text-indent:35.4pt;mso-char-indent-count:2.95'><span lang=EN-US
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>27.E-08<span style='mso-tab-count:1'> </span>E+00<span
style='mso-tab-count:1'> </span>1E-05<span style='mso-tab-count:
2'> </span>3<sup>2</sup><span
style='mso-tab-count:2'> </span>10**2<span
style='mso-tab-count:2'> </span></span><span
lang=ZH-CN style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>π</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'><span style='mso-tab-count:1'> </span>lg1100<o:p></o:p></span></pre><pre><span
lang=EN-US style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>[1.4] </span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>把下列各数分别写成小数型实数与指数型实数:</span><span
lang=EN-US style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'><o:p></o:p></span></pre><pre
style='text-indent:35.4pt;mso-char-indent-count:2.95'><span lang=EN-US
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>3.1416<span style='mso-tab-count:1'> </span>31416<span
style='mso-tab-count:1'> </span>-314000<span style='mso-tab-count:
2'> </span>-0.0003141<span
style='mso-tab-count:1'> </span>10<sup>5</sup><span
style='mso-tab-count:1'> </span>10<sup>-3</sup><span
style='mso-tab-count:1'> </span>314.16<span
style='mso-tab-count:1'> </span>31.416x10<sup>5</sup><o:p></o:p></span></pre><pre><span
lang=EN-US style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>[1.5] </span><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>指出下列表达式的正确与否,错的更正:</span><span
lang=EN-US style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'><o:p></o:p></span></pre><pre
style='margin-left:35.05pt;mso-pagination:none;tab-stops:139.65pt 258.45pt 332.75pt;
layout-grid-mode:char;mso-layout-grid-align:none'><span lang=ZH-CN
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>数学式</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'><span style='mso-tab-count:1'> </span></span><span
lang=ZH-CN style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'>表达式</span><span lang=EN-US
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'><o:p></o:p></span></pre><pre
style='margin-left:35.15pt;mso-pagination:none;tab-stops:139.65pt 258.45pt 332.75pt;
layout-grid-mode:char;mso-layout-grid-align:none'><span lang=EN-US
style='font-size:12.0pt;font-family:宋体;mso-bidi-font-family:"Times New Roman";
color:#333399;mso-font-kerning:1.0pt'><span style='position:relative;
top:7.0pt;mso-text-raise:-7.0pt'><!--[if gte vml 1]><v:shapetype id="_x0000_t75"
coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="_x0000_i1036" type="#_x0000_t75" style='width:39.75pt;
height:21.75pt' o:ole="">
<v:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -