Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 2 D arrays
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
magicman




PostPosted: Wed Apr 28, 2004 9:15 am   Post subject: 2 D arrays

I'm making a 2d array and i need help with 2 d arrays. Can anyone teach me how to use them??
and also how would I use it in my rpg?
Sponsor
Sponsor
Sponsor
sponsor
AsianSensation




PostPosted: Wed Apr 28, 2004 9:22 am   Post subject: (No subject)

http://www.compsci.ca/v2/viewtopic.php?t=1117[/url]
Tony




PostPosted: Wed Apr 28, 2004 10:58 am   Post subject: (No subject)

eh...
arrays
another array
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Flashkicks




PostPosted: Wed Apr 28, 2004 1:20 pm   Post subject: (No subject)

Heres a nice handy Dandy grid system relative to using 2Dimentional arrays.. You can just change the sizes of the boxes when yuo call the procedure.
[Eg. Boxes (25, 25) Boxes (5, 5, ) ]
Smile
code:
procedure Boxes (hieght : int, width : int)
    for i : 1 .. 8
        for j : 1 .. 8
            drawbox (width * i, hieght * j, width * i + hieght, hieght * j + width, 12)
        end for
    end for
end Boxes
Boxes (25, 25)
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: