944,035 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 490
  • C RSS
Oct 26th, 2009
0

Symmetrical 2D Array Problem

Expand 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?
Similar Threads
Odc
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Odc is offline Offline
5 posts
since Oct 2009
Oct 26th, 2009
1
Re: Symmetrical 2D Array Problem
Click to Expand / Collapse  Quote originally posted by Odc ...
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?
Team Colleague
Reputation Points: 2780
Solved Threads: 312
long time no c
Dave Sinkula is offline Offline
4,790 posts
since Apr 2004
Oct 26th, 2009
1
Re: Symmetrical 2D Array Problem
It works for me...
Reputation Points: 453
Solved Threads: 57
Posting Virtuoso
twomers is offline Offline
1,873 posts
since May 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: array in programming
Next Thread in C Forum Timeline: How do I create multiple executables from one target in a makefile?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC