How to Handle Matrix Operations and Pair Finding in C?

  • Thread starter Thread starter sulev8
  • Start date Start date
  • Tags Tags
    Assignment
AI Thread Summary
To handle matrix operations and pair finding in C, first, create a two-dimensional array to store the integer rectangle matrix. Next, implement a method to display the matrix by columns. To find pairs of elements with equal values, iterate through the matrix and compare each element with the others, storing their indices when matches are found. It’s essential to break down the problem into smaller steps and visualize the data structure to aid understanding. This approach will help in solving similar programming assignments effectively.
sulev8
Messages
5
Reaction score
0
Enter integer rectangle matrix A(0..n,0..m). Give out entered matrix by columns. Find all element pairs with equal value and their index and give them out.


I have to write c programm for this , can anyone make the body of this exercise and share some instructions how i should approach to this kind of exercise.
Many thanks in advance.
 
Physics news on Phys.org
Welcome to PF sulev. Note that on PF we don't give answers, just hints. For me it is easy to produce such a program but if I just give it to you then you probably won't be able to solve a similar assignment yourself next time.

Have you learned about arrays? Also, two dimensional arrays (http://www.eskimo.com/~scs/cclass/int/sx9.html)?
 
CompuChip said:
Welcome to PF sulev. Note that on PF we don't give answers, just hints. For me it is easy to produce such a program but if I just give it to you then you probably won't be able to solve a similar assignment yourself next time.

Have you learned about arrays? Also, two dimensional arrays (http://www.eskimo.com/~scs/cclass/int/sx9.html)?

maybe you can give me some more hints , I am still kinda in trouble with it
 
Write down step by step what you need to do.
Draw the storage as boxes on pieces of paper.
Think

Post back here
 
Back
Top