⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 4-4.htm

📁 vb基础教程源文件 处学者必备
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=GB2312">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="./4-4.files/filelist.xml">
<link rel=Edit-Time-Data href="./4-4.files/editdata.mso">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>《Visual Basic》基础教程</title>
<!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:Author>oem</o:Author>
  <o:Template>Normal</o:Template>
  <o:LastAuthor>oem</o:LastAuthor>
  <o:Revision>2</o:Revision>
  <o:TotalTime>9</o:TotalTime>
  <o:LastPrinted>2006-06-30T08:06:00Z</o:LastPrinted>
  <o:Created>2006-07-04T06:11:00Z</o:Created>
  <o:LastSaved>2006-07-04T06:11:00Z</o:LastSaved>
  <o:Pages>14</o:Pages>
  <o:Words>1641</o:Words>
  <o:Characters>9358</o:Characters>
  <o:Lines>77</o:Lines>
  <o:Paragraphs>18</o:Paragraphs>
  <o:CharactersWithSpaces>11492</o:CharactersWithSpaces>
  <o:Version>9.2812</o:Version>
 </o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:Zoom>80</w:Zoom>
  <w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing>
  <w:Compatibility>
   <w:UseFELayout/>
  </w:Compatibility>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
@font-face
	{font-family:宋体;
	panose-1:2 1 6 0 3 1 1 1 1 1;
	mso-font-alt:SimSun;
	mso-font-charset:134;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
	{font-family:"\@宋体";
	panose-1:2 1 6 0 3 1 1 1 1 1;
	mso-font-charset:134;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
	{font-family:"\000B";
	panose-1:0 0 0 0 0 0 0 0 0 0;
	mso-font-charset:0;
	mso-generic-font-family:roman;
	mso-font-format:other;
	mso-font-pitch:auto;
	mso-font-signature:0 0 0 0 0 0;}
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:宋体;
	mso-bidi-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	mso-text-animation:none;
	text-decoration:none;
	text-underline:none;
	text-decoration:none;
	text-line-through:none;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	mso-text-animation:none;
	text-decoration:none;
	text-underline:none;
	text-decoration:none;
	text-line-through:none;}
p
	{margin-right:0cm;
	mso-margin-top-alt:auto;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:宋体;
	mso-bidi-font-family:"Times New Roman";}
p.section1, li.section1, div.section1
	{mso-style-name:section1;
	margin-right:0cm;
	mso-margin-top-alt:auto;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	line-height:18.7pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"\000B";
	mso-fareast-font-family:宋体;
	mso-bidi-font-family:"Times New Roman";
	color:#333399;}
 /* Page Definitions */
@page
	{mso-page-border-surround-header:no;
	mso-page-border-surround-footer:no;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	mso-header-margin:42.55pt;
	mso-footer-margin:49.6pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
</head>

<body lang=ZH-CN link=blue vlink=blue style='tab-interval:21.0pt'>

<div class=Section1>

<p align=center style='text-align:center;layout-grid-mode:char'><b><span
style='font-size:16.0pt;letter-spacing:1.0pt'>第四章<span lang=EN-US> VB程序的控制结构</span></span></b><span
lang=EN-US><o:p></o:p></span></p>

<p align=center style='text-align:center;layout-grid-mode:char'><b><span
lang=EN-US style='font-size:14.0pt;letter-spacing:1.0pt'>4.1</span></b><b><span
lang=EN-US style='font-size:7.0pt;font-family:"Times New Roman";letter-spacing:
1.0pt'>&nbsp; </span></b><b><span style='font-size:14.0pt;letter-spacing:1.0pt'>算法概论</span></b><span
lang=EN-US><o:p></o:p></span></p>

<p style='layout-grid-mode:char'><b><span lang=EN-US style='letter-spacing:
1.0pt'>1.算法的概念</span></b><span lang=EN-US><o:p></o:p></span></p>

<p style='layout-grid-mode:char'><b><span style='letter-spacing:1.0pt'>  算法</span></b><span
style='letter-spacing:1.0pt'>:指用计算机解决某一问题的方法和步骤。</span><span lang=EN-US><o:p></o:p></span></p>

<table border=0 cellpadding=0 width=750 style='width:562.5pt;mso-cellspacing:
 1.5pt' height=91>
 <tr style='height:36.0pt'>
  <td width="12%" rowspan=2 style='width:12.0%;padding:.75pt .75pt .75pt .75pt;
  height:36.0pt'>
  <p class=MsoNormal><b><span style='font-size:10.0pt;color:#333399;letter-spacing:
  1.0pt'>算法分类</span></b><span style='font-size:10.0pt;color:#333399;letter-spacing:
  1.0pt'>:</span><span style='font-size:10.0pt;color:#333399'> <span
  lang=EN-US><o:p></o:p></span></span></p>
  </td>
  <td width="88%" style='width:88.0%;padding:.75pt .75pt .75pt .75pt;
  height:36.0pt'>
  <p class=MsoNormal><b><span style='font-size:10.0pt;color:#333399;letter-spacing:
  1.0pt'>数值算法</span></b><span style='font-size:10.0pt;color:#333399;letter-spacing:
  1.0pt'>:用于解决一般数学解析方法难以解决的问题,如:求超越方程的根、求定积分、解微分方程等。</span><span lang=EN-US
  style='font-size:10.0pt;color:#333399'><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><b><span style='font-size:10.0pt;color:#333399;letter-spacing:
  1.0pt'>非数值算法</span></b><span style='font-size:10.0pt;color:#333399;
  letter-spacing:1.0pt'>:用于对非数值信息进行查找、排序等。</span><span lang=EN-US
  style='font-size:10.0pt;color:#333399'><o:p></o:p></span></p>
  </td>
 </tr>
</table>

<p style='layout-grid-mode:char'><b><span style='letter-spacing:1.0pt'>  数值算法</span></b><span
style='letter-spacing:1.0pt'>:用于解决一般数学解析方法难以解决的问题,如:求超越方程的根、求定积分、解微分方程等。</span><span
lang=EN-US><o:p></o:p></span></p>

<p style='layout-grid-mode:char'><span lang=EN-US style='letter-spacing:1.0pt'>&nbsp;&nbsp;&nbsp;&nbsp;
<b>非数值算法</b>:用于对非数值信息进行查找、排序等。</span><span lang=EN-US><o:p></o:p></span></p>

<p style='layout-grid-mode:char'><b><span lang=EN-US style='letter-spacing:
1.0pt'>2.算法的特征</span></b><span lang=EN-US><o:p></o:p></span></p>

<p style='layout-grid-mode:char'><span style='letter-spacing:1.0pt'> (<span
lang=EN-US>1)<b>确定性</b>:指算法的每个步骤都应确切无误,没有歧义。<br>
 (2)<b>可行性</b>:指算法的每个步骤必须是计算机能够有效执行、可以实现的,并可得到确定的结果。</span></span><span
lang=EN-US><br>
 <span style='letter-spacing:1.0pt'>(3)<b>有穷性</b>:指一个算法应该在有限的时间和步骤内可以执行完毕的。</span><br>
 <span style='letter-spacing:1.0pt'>(4)<b>输入性</b>:指一个算法可以有0或多个输入数据。</span><br>
 <span style='letter-spacing:1.0pt'>(5)<b>输出性</b>:指一个算法必须有一个或多个输出结果。</span><o:p></o:p></span></p>

<p style='layout-grid-mode:char'><b><span lang=EN-US style='letter-spacing:
1.0pt'>3.算法的评价</span></b><span lang=EN-US><o:p></o:p></span></p>

<p style='layout-grid-mode:char'><span style='letter-spacing:1.0pt'>  主要评价指标是:<b>算法是否正确、运行的效率、占用系统资源的多少</b>。</span><span
lang=EN-US><o:p></o:p></span></p>

<p style='layout-grid-mode:char'><b><span lang=EN-US style='letter-spacing:
1.0pt'>4.算法的描述</span></b><span lang=EN-US><o:p></o:p></span></p>

<p style='layout-grid-mode:char'><span style='letter-spacing:1.0pt'>  一般常用流程框图来描述算法。</span><span
lang=EN-US><o:p></o:p></span></p>

<table border=1 cellpadding=0 width="47%" style='width:47.0%;mso-cellspacing:
 1.5pt'>
 <tr>
  <td style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><b><span style='font-size:10.0pt;color:#333399;letter-spacing:
  1.0pt'>图形符号</span></b><span lang=EN-US style='font-size:10.0pt;color:#333399'><o:p></o:p></span></p>
  </td>
  <td style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><b><span style='font-size:10.0pt;color:#333399;letter-spacing:
  1.0pt'>名称</span></b><span lang=EN-US style='font-size:10.0pt;color:#333399'><o:p></o:p></span></p>
  </td>
  <td style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><b><span style='font-size:10.0pt;color:#333399'>代表操作</span></b><span
  lang=EN-US style='font-size:10.0pt;color:#333399'><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -