This is the code I have soo far...
Main Topics
Browse All TopicsI created a 2D 10x10 array. I'm having a problem getting it to check if its symmetric. (If point M[y][x]==N[x][y] )
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
isSymmetric should return somethin, best would be a boolean value in your case, true or false.
>> I'm having a problem getting it to check if its symmetric. (If point M[y][x]==N[x][y] )
You already wrote in that statements how it works. If the above comparison is false, then you can leave the function and return that information (false). If the for-loops are finished, then it means all is symmetric and you can return that data (true).
Put that into code and we take it from there
ike
>>>> int 2Darray[10][10];
A variable must start with a letter. So use 'array2D' and not '2Darray' for name.
You also better use typedef for the 10x10 matrix. Then, you can pass it as a new type and can use it in the functions with their dimensions like
typedef int Matrix10x10[10][10];
void f(Matrix10x10& m)
{
m[2][3] = 1;
}
Business Accounts
Answer for Membership
by: a_bPosted on 2009-11-02 at 23:23:57ID: 25726653
Create 2 for loops
for(i=0;i<1;i++)
for(j=0;j<10;j++)
{
......
M[i][j]==M[j][i] --> Add code within the loop to do your checks.
}