|
Post by Darkjester on Aug 22, 2008 0:43:12 GMT -5
IT would be cool to put data into arrays like this Dim array(1,2,3,4...ETC) And or Like this Dim Array(5) Array(0,1,2,3,4,5) Catch what im sayin?
|
|
|
Post by Nicky Peter Hollyoake on Aug 22, 2008 3:18:07 GMT -5
This would definy be useful!
Accept I'd prefer the C++ way (or simaler).
Maybe ...
Dim Array(2) = (1, 2, 3)
- Nicky
|
|
|
Post by Darkjester on Aug 22, 2008 8:54:49 GMT -5
Either way it would useful Edit: How about this Dim array(2(1,2,3)) 2 declare 3 elements and then give them data?
|
|
|
Post by Nicky Peter Hollyoake on Aug 22, 2008 16:25:17 GMT -5
Well if anything it should be like this ...
Dim Array (2) (2) = {(1, 2, 3), (1, 2, 3), (1, 2, 3)}
Is same as ...
Dim Array(2)(2)
Array(0)(0) = 1 Array(0)(1) = 2 Array(0)(2) = 3
Array(1)(0) = 1 Array(1)(1) = 2 Array(1)(2) = 3
Array(2)(0) = 1 Array(2)(1) = 2 Array(2)(2) = 3
- Nicky
|
|
|
Post by DJLinux on Aug 24, 2008 18:45:00 GMT -5
Dim Array#(2,2) Array#(0)=Vec3(1,2,3) Array#(1)=Vec3(2,3,4) Array#(2)=Vec3(5,6,7)
|
|
|
Post by Nicky Peter Hollyoake on Aug 24, 2008 20:27:35 GMT -5
Dim Array#(2,2) Array#(0)=Vec3(1,2,3) Array#(1)=Vec3(2,3,4) Array#(2)=Vec3(5,6,7) Lol or like that. But I was showing it with an integer array
|
|
|
Post by Darkjester on Aug 24, 2008 22:33:51 GMT -5
Would work with any data type wouldn't it?
|
|
|
Post by Adam on Sept 10, 2008 16:18:03 GMT -5
i actually like nicky's way more, it would be less confusing 4 newbs lol. Dj, remember how hard of a time you had with them to start with
|
|
|
Post by Darkjester on Sept 10, 2008 16:27:31 GMT -5
Ive never had a problem with arrays It was pointers thats why i did the tut so that people could learn from something better than the Documentation (eiser to understand with examples)
|
|
|
Post by Adam on Sept 10, 2008 17:07:40 GMT -5
but you did tend to have problems with arrays when structures came into play
|
|
|
Post by Darkjester on Sept 10, 2008 17:48:07 GMT -5
No i didn't once i got the pointer set that was the only prob i had
|
|
|
Post by Adam on Sept 10, 2008 18:39:22 GMT -5
owell its in the past lol
|
|
|
Post by Nicky Peter Hollyoake on Sept 11, 2008 22:49:28 GMT -5
Do you 2 know each other?
|
|
|
Post by Darkjester on Sept 11, 2008 22:50:58 GMT -5
Yea he lives down the road from me i introduced him to basic4gl(He knows more though he started using it before i did) Do you like the way i write my tutorials?
|
|
|
Post by Nicky Peter Hollyoake on Sept 11, 2008 22:59:30 GMT -5
The ones of seen so far, nothing bad about them, people can learn from them - so there good. Collision is taking long because I ain't done one bit of coding all day and I need sleep at the moment (I'm sorry I know I'm taking the píss abit but it will be done adventually just need time only take about 20/30 minutes not even that). Maybe tomorrow!
|
|