Page 32 - ePB316_最佳案例 Visual Basic 2017 程式設計
P. 32

Visual Basic 2017 程式設計





                    動手做

                    識別字更正。請開啟主控台應用程式,並鍵入以下程式,若有錯誤,並完成更正。

                     Module Module1
                         Sub Main()

                             Dim a As Short
                             Dim 7a as Short
                             Dim +a as Short
                             Dim $sum as byte
                             Dim _a As Boolean
                             Dim a c as Char
                             Dim a+c as string

                             Dim if as Short
                         End Sub
                     End Module






                             2-4c༶ၑɿ



                        ̙˸࿁༶ၑʩ€OperandੂБत֛̌ঐٙतࣿୌ໮၈މ༶ၑɿfɓছϾԊd༶

                    ၑɿ̙ʱމ˸ɨ఻ᗳjܸݼ€Assignment༶ၑɿeၑஔ€Arithmetic༶ၑɿeᗫ
                    ڷ€Relational༶ၑɿeᜌ፨€Logical༶ၑɿeοЕ€String༶ၑɿeልΥܸ

                    ݼ༶ၑɿʿЗʩ዁Ъ€Bitwise༶ၑɿf

                    Ͼӊɓ၇༶ၑɿே̙˸Ύ୚ʱމɓʩ€Unary༶ၑɿၾɚʩ€Binary༶ၑɿf
                    ɓʩ༶ၑɿ̥ცࠅɓࡈ༶ၑʩఱ̙˸዁ЪdϾɚʩ༶ၑɿۆცࠅՇࡈ༶ၑʩʑঐ੄

                    ዁Ъf

                    ί˸ɨఊʩʕdҢࡁৰəᏨൖ΢၇ʔΝٙ༶ၑɿ̌ঐ̮dᒔਗ਼ীሞ༶ၑɿٙᎴ΋න

                    ҏ€PrecedenceၾഐΥܛ€AssociativityfᎴ΋නҏ݊͜ԸӔ֛ΝɓόɿኹϞε
                    ࡈ༶ၑɿࣛdӊɓࡈ༶ၑɿආБ༶ၑٙනҏiϾഐΥܛۆӔ֛əίΝɓાࠑʕd޴

                    ΝᎴ΋නҏٙ༶ၑɿੂБනҏf




              24
   27   28   29   30   31   32   33   34   35   36   37