Thread: Arrays!

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    5

    Unhappy Arrays!

    I need some help!

    I have to write a program that contains two floating point arrays (a and b) and asks the user to enter values into both of them. It must then compute the inner product of the two vectors from a user inputted index(s) to another user inputted index(t).

    ie. a[s] * b[s] + a[s+1] * b[s+1] + ..... + a[t] * b[t]

    Any help greatly appreciated, what I am having most trouble with is setting up the damn arrays and getting the user to input them!

    Thanks

    J

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Since you didn't give us any clue as to how much you can do on your own, we're forced to assume you know nothing at all. Therefore, the only help I can provide, is suggesting you go buy a book on C programming. Might I suggest looking here.

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Function to read in two arrays
    By ssmokincamaro in forum C Programming
    Replies: 7
    Last Post: 11-12-2008, 07:59 AM
  2. pointers & arrays and realloc!
    By zesty in forum C Programming
    Replies: 14
    Last Post: 01-19-2008, 04:24 PM
  3. Replies: 16
    Last Post: 01-01-2008, 04:07 PM
  4. Need Help With 3 Parallel Arrays Selction Sort
    By slickwilly440 in forum C++ Programming
    Replies: 4
    Last Post: 11-19-2005, 10:47 PM
  5. Crazy memory problem with arrays
    By fusikon in forum C++ Programming
    Replies: 9
    Last Post: 01-15-2003, 09:24 PM