Dim x As LongPrivate Sub Command1_Click() Dim a As String x = x + 1 a = "text" & x Print aEnd Sub 第二种变量定义:Private Sub Command1_Click() Dim a As String Static x As Long x = x + 1 a = "text" & x Print aEnd Sub ...
p是指针,他的类型是char型,指向常字符串girl,*p的值是girl,p的值是girl字符串的首地址。字符指针也可以指向一个字符串,可以用字符串常量对字符指针进行初始化。例如:char *str = "hello" ;这是对字符指针进行初始化。此时,字符指针指向一个字符串常量的首地址。还可以用字符数组来存放字符串...
a.ToString即可