07-23-2005, 07:15 AM
Using the following code:
[syntax="qbasic"]
Declare Sub TestSub (Array() As Integer PTR)
Dim myArray(10) As Integer
Dim myPointer As Integer PTR
myPointer = @myArray
TestSub myPointer
[/syntax]
(May be buggy I know)
First of all, is the sub TestSub asking for an array of pointers? Or a pointer to an array? Second, how would I access (using myPointer) the value at myArray(5)?[/code]
[syntax="qbasic"]
Declare Sub TestSub (Array() As Integer PTR)
Dim myArray(10) As Integer
Dim myPointer As Integer PTR
myPointer = @myArray
TestSub myPointer
[/syntax]
(May be buggy I know)
First of all, is the sub TestSub asking for an array of pointers? Or a pointer to an array? Second, how would I access (using myPointer) the value at myArray(5)?[/code]
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]