Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help in making table..
#21
maybe the complexity of the pointer dereferencing is throwing yuou off. you really should start on pointers soon... babyyy steeeppssss...
Reply
#22
Useless without swapping.
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#23
Code:
Dim As Integer x, y
Dim As Integer Ptr xp, yp


x = 182736
y = 23

xp = @x
yp = @y

Swap xp, yp

? *yp '' PRINTS X VALUE
Sleep

?
Reply
#24
:-|

Like so. Yes there is a simple non-pointer solution to this, but simple solutions be damned...

Quote:I have 2 arrays. How do I create a pointer to swap between the arrays? Example:

if array1(index1) = A then array2(index2) = B

I want to create a pointer such that it does the opposite:
if array2(index1) = A then array1(index2) = B

http://www.freebasic.net/forum/viewtopic...&highlight=

Show me ONE use of a pointer that is clearly better than without using a pointer. Then do the same with the "=>" notation.


And, unless this:
Quote: Dim As Integer check_fields, check_fields2

For check_fields = 0 To othr[check].anim[othr[check].current_anim].frame[othr[check].frame_check].faces - 1

...means nothing, then the GOTO is significant.
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#25
Quote:Show me ONE use of a pointer that is clearly better than without using a pointer.
Ever tried implementing a linked list or binary tree or any other self-referencing data structure without pointers or references of some kind? Smile
Reply
#26
Why would you need those? Smile
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)