![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |||
| Array can you explain what the below means? as i don't understand the explanation below. if the array has one element, why there are g, 0, null? "open = { { g, 0, null } }. It simply means open is an array with one element in it, that one element is a node with name g, has a movement cost of 0, and has a parent of null." can i declare like this in a single dimensional array? array[0]={g, 0, null} array[1]={h, 0.5, g} and so forth? or it must be in a 2-d array? closed = { { g, 0, null }, { h, 0.5, g }, { b, 1, g }, { d, 1, h }, { a, 2, b }, { c, 2, d }, { e, 2, d }, { f, 3, a } }. |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |