Symmetrical 2D Array Problem

Reply

Join Date: Oct 2009
Posts: 5
Reputation: Odc is an unknown quantity at this point 
Solved Threads: 0
Odc Odc is offline Offline
Newbie Poster

Symmetrical 2D Array Problem

 
0
  #1
33 Days Ago
Hi guys, I've got a simple bool 2D array that is set to false by default. I'm filling it with random 'true' values.

I am then trying to make it symmetrical

i.e. array[i][j] = array[j][i]

However, this doesnt seem to be working and I was wondering why. I've been trying it all evening.

Any suggestions?
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 4,349
Reputation: Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future 
Solved Threads: 237
Team Colleague
Dave Sinkula's Avatar
Dave Sinkula Dave Sinkula is offline Offline
long time no c
 
1
  #2
33 Days Ago
Originally Posted by Odc View Post
Hi guys, I've got a simple bool 2D array that is set to false by default. I'm filling it with random 'true' values.

I am then trying to make it symmetrical

i.e. array[i][j] = array[j][i]

However, this doesnt seem to be working and I was wondering why. I've been trying it all evening.

Any suggestions?
Do you really think this is enough information for any kind of an answer?
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 1,861
Reputation: twomers has a spectacular aura about twomers has a spectacular aura about twomers has a spectacular aura about 
Solved Threads: 56
twomers's Avatar
twomers twomers is offline Offline
Posting Virtuoso
 
1
  #3
33 Days Ago
It works for me...
I blag!?
"Mr Kitty, you have to live in the attic now. Here, write a diary."
I am the Walrus!
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC