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

📄 class_book_begin034.htm

📁 vb实例,很好很好用的哦,处学者的天堂这是第三部分
💻 HTM
📖 第 1 页 / 共 2 页
字号:
          <li><strong><span style="line-height: 25px">数学运算</span></strong></li>
        </ol>
        <table border="0" cellpadding="0" cellspacing="0" width="100%" msimagelist>
          <tr msimagelist>
            <td valign="baseline" width="42" msimagelist><img src="bullet4.gif" width="13" height="12" hspace="14"></td>
            <td valign="top" width="100%"><strong><span style="line-height: 25px">+:加法运算,也适合于字符串的之间的合并运算。</span></strong></td msimagelist>
          </tr>
          <tr msimagelist>
            <td valign="baseline" width="42" msimagelist><img src="bullet4.gif" width="13" height="12" hspace="14"></td>
            <td valign="top" width="100%"><strong><span style="line-height: 25px">-:加法运算。</span></strong></td msimagelist>
          </tr>
          <tr msimagelist>
            <td valign="baseline" width="42" msimagelist><img src="bullet4.gif" width="13" height="12" hspace="14"></td>
            <td valign="top" width="100%"><strong><span style="line-height: 25px">*:乘法运算。</span></strong></td msimagelist>
          </tr>
          <tr msimagelist>
            <td valign="baseline" width="42" msimagelist><img src="bullet4.gif" width="13" height="12" hspace="14"></td>
            <td valign="top" width="100%"><strong><span style="line-height: 25px">/:除法运算。</span></strong></td msimagelist>
          </tr>
          <tr msimagelist>
            <td valign="baseline" width="42" msimagelist><img src="bullet4.gif" width="13" height="12" hspace="14"></td>
            <td valign="top" width="100%"><strong><span style="line-height: 25px">\:整除运算。</span></strong></td msimagelist>
          </tr>
          <tr msimagelist>
            <td valign="baseline" width="42" msimagelist><img src="bullet4.gif" width="13" height="12" hspace="14"></td>
            <td valign="top" width="100%"><strong><span style="line-height: 25px">Mod:求余运算。例如:a 
            Mod b表示a被b整除以后的余数。</span></strong></td msimagelist>
          </tr>
          <tr msimagelist>
            <td valign="baseline" width="42" msimagelist><img src="bullet4.gif" width="13" height="12" hspace="14"></td>
            <td valign="top" width="100%"><strong><span style="line-height: 25px">^:幂运算。A^B表示以A为底的B次方。</span></strong></td msimagelist>
          </tr>
        </table msimagelist>
        <ol>
          <li><strong><span style="line-height: 25px">关系运算</span></strong></li>
          <p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">关系运算也称比较运算,它表示不等式的真或假,VB共提供六种运算符,分别是=(等于),&gt;(大于),&lt;(小于),&gt;=(大于等于),&lt;=(小于等于)和&lt;&gt;(不等于)。</span></strong></p>
          <li><strong><span style="line-height: 25px">逻辑运算</span></strong></li>
        </ol>
        <p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">逻辑运算是对真或假的运算,我将列表说明:</span></strong></p>
        <p ALIGN="JUSTIFY"> </p>
        <table BORDER="1" CELLSPACING="1" CELLPADDING="7" WIDTH="568" bordercolor="#000080" bordercolorlight="#000080" bordercolordark="#000080">
          <tr>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">A</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">B</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">Not 
            A</span></strong></p>
            <p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">非</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">And</span></strong></p>
            <p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">与</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">Or</span></strong></p>
            <p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">或</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">Xor</span></strong></p>
            <p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">异或</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">Eqv</span></strong></p>
            <p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">相等</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">Imp</span></strong></p>
            <p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">蕴含</span></strong></td>
          </tr>
          <tr>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">T</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">T</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">F</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">T</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">T</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">F</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">T</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">T</span></strong></td>
          </tr>
          <tr>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">T</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">F</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">F</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">F</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">T</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">T</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">F</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">F</span></strong></td>
          </tr>
          <tr>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">F</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">T</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">T</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">F</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">T</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">T</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">F</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">T</span></strong></td>
          </tr>
          <tr>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">F</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">F</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">T</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">F</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">F</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">F</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">T</span></strong></td>
            <td WIDTH="13%" VALIGN="TOP"><p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">T</span></strong></td>
          </tr>
        </table>
        <p> </p>
        <p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">T――True F――False</span></strong></p>
        <hr>
        <p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">七、 数据与定义</span></strong></p>
        <ol START="7">
          <p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">本标题的内容已经在上一章向大家详述过,在这里就不再重复。</span></strong></p>
        </ol>
        <hr>
        <p><strong><span style="line-height: 25px">八、函数与过程 </span></strong></p>
        <blockquote>
          <p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">函数与过程有许多相似的地方,它们之间最大也是最本质的区别就在于,函数有一个返回值,而过程只是执行一系列动作,所以可以简单的把函数理解成为一个变量,而VB中的每个事件都是一个过程,比如Command1_Click()就是一个过程。</span></strong></p>
          <p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">因为在程序设计中经常会有重复的地方,所以把它做成一个函数或一个过程,在使用时进行调用,可以节省大量的输入代码的时间,而且使用函数和过程也便于程序的结构化和修改查看。函数和过程都可以有参数,也可以没有参数。</span></strong></p>
          <p ALIGN="JUSTIFY"><strong><span style="line-height: 25px">关于函数和过程我将在以后的章中配合实例讲解,请您继续留意VB教程。</span></strong></p>
        </blockquote>
        </td>
      </tr>
    </table>
    </center></div><p align="right"><strong><a href="#top"><img src="top2.gif" border="0" WIDTH="27" HEIGHT="30"></a></strong></td>
  </tr>
</table>
</center></div>

<p> </p>
</body>
</html>
<!--webbot bot="HTMLMarkup" TAG="XBOT" StartSpan --></SCRIPT><!--webbot BOT="HTMLMarkup" endspan -->

⌨️ 快捷键说明

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