今晚的最后一个问题。我将如何重新编写此代码以不再通过返回值返回商,而是使用引用参数返回有关商的信息?
Function divideInputs(ByVal dividend As Integer, ByVal divisor As Integer) As Double
Dim quotient As Integer = 1
quotient = dividend / divisor
Return quotient
End Function
今晚的最后一个问题。我将如何重新编写此代码以不再通过返回值返回商,而是使用引用参数返回有关商的信息?
Function divideInputs(ByVal dividend As Integer, ByVal divisor As Integer) As Double
Dim quotient As Integer = 1
quotient = dividend / divisor
Return quotient
End Function