1 / 7

Dim C As Single Dim S As Single Let C = 2 * Pi * r Let S = Pi * r * r

Dim C As Single Dim S As Single Let C = 2 * Pi * r Let S = Pi * r * r. 赋值号. 圆周长变量. 表达式. Let C = 2 * Pi * r. 有一个变量 i ,初始值为 0 ,每次给它加 1 ,共加 5 次,用赋值语句如何表示?. i = i + 1. [Let] 变量 = 表达式. 读作:将表达式的值赋给变量. Private Sub Form_Click() Dim x As Single, y As Single Form1.Print -61; -34

Download Presentation

Dim C As Single Dim S As Single Let C = 2 * Pi * r Let S = Pi * r * r

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Dim C As Single Dim S As Single Let C = 2 * Pi * r Let S = Pi * r * r

  2. 赋值号 圆周长变量 表达式 Let C = 2 * Pi * r

  3. 有一个变量i,初始值为0,每次给它加1,共加5次,用赋值语句如何表示?有一个变量i,初始值为0,每次给它加1,共加5次,用赋值语句如何表示? i = i + 1

  4. [Let] 变量 = 表达式 读作:将表达式的值赋给变量

  5. Private Sub Form_Click() Dim x As Single, y As Single Form1.Print -61; -34 Form1.Print 9 * 2; 12 Form1.Print "This is"; "a book" x = 3: y = 4 Print "x="; x, "y="; y End Sub

  6. 输出语句格式: [对象].Print [表达式列表][{;|,}]

  7. Private Sub Form_Click() Dim a As Integer, b As Integer, c As Integer Dim str As String Let a = 54 Let b = 114 c = a + b str = "Hello World" Print "a="; a, "b="; b, "c="; c Print str End Sub

More Related