这几天一直封闭,昨天刚刚放出来,感觉十分的疲惫。
在封闭的过程中也遇到了十分有意思的事情,比如下边的一段代码:
Dim a As Double
Dim b As Double
Dim c As Double
Dim d As Double
a = 16.9
b = 4.1
c = Int(a + b)
d = a + b
d = Int(d)
Dim b As Double
Dim c As Double
Dim d As Double
a = 16.9
b = 4.1
c = Int(a + b)
d = a + b
d = Int(d)
在VB6中,c的返回值是20,d的返回值是21。