VB中 逗号 分号 冒号的用法和区别

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 18:53:17
VB中 逗号 分号 冒号的用法和区别

VB中 逗号 分号 冒号的用法和区别
VB中 逗号 分号 冒号的用法和区别

VB中 逗号 分号 冒号的用法和区别
dim a,b
a=1
b=2
print a,b
print a;b
你把这段代码运行一下下,就知道逗号和分号的区别了.至于冒号,一楼说的对,是用于在一行中写两个以上语句的分隔符.如a=1:b=2:Print a,b:print a;b,等同于上面代码的写法.