Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Can anyone help me with this assignment

  1. Oct 18, 2008 #1
    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 thx in advance.
  2. jcsd
  3. Oct 18, 2008 #2


    User Avatar
    Science Advisor
    Homework Helper

    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)?
  4. Oct 18, 2008 #3
    maybe you can give me some more hints , im still kinda in trouble with it
  5. Oct 19, 2008 #4


    User Avatar
    Science Advisor
    Homework Helper

    Write down step by step what you need to do.
    Draw the storage as boxes on pieces of paper.

    Post back here
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook