Allright I have a couple of simple questions about types.
1. How does the computer tell the difference between them... If they all have the same name/thing then how does it know whem apart?
Example:
type player
field x,y,z
end type
p.player=new player
p\x=10
p\y=11
p\z=12
p.player=new player
p\x=24
p\y=60
p\z=100
Now how does the computer know the difference between the first p.player and the second p.player?
2. Am I doing that code wrong and if so then how do I fix it?
3. If I am doing the code right, how would I tell the computer to say delete the first one but not the second?
1. How does the computer tell the difference between them... If they all have the same name/thing then how does it know whem apart?
Example:
type player
field x,y,z
end type
p.player=new player
p\x=10
p\y=11
p\z=12
p.player=new player
p\x=24
p\y=60
p\z=100
Now how does the computer know the difference between the first p.player and the second p.player?
2. Am I doing that code wrong and if so then how do I fix it?
3. If I am doing the code right, how would I tell the computer to say delete the first one but not the second?