Thread: 2d array
View Single Post
Old Apr 19th, 2006, 9:05 PM   #10
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Quote:
row as the first node and then the column as the second node and then the value stored at that spot is the weight connecting the two nodes.
Check out this inconsistency: row is one node, column is one node, weight connecting the two nodes is stored at "that" spot. Where is "that" spot? If "that" spot is at array [row][col], then that isn't TWO nodes. Pardon me if I'm being thick here, but I'm not ragging you, I truly don't get it.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote