|
-
Arrays and adding
I have one array that has 5 elements, and another also having 5.
I want to add the elements from the second into the first, but the first value of each is to be added, and then the second of each.
Kinda like if I had Array1 and Array2
Array1[0]+=Array2[0]
Array1[1]+=Array2[1]
and so on
Is there an easy way to say that the arrays are to add themselves, but only the appropriate values?
I'm sorry if this is choppy, but it's my first time using arrays and them really working.
Thanx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|