|
* jesuslewis
|
Sep 15 2017, 08:07 AM
Post #1
|
|
- Posts:
- 274
- Group:
- Dedicated Members
- Member
- #3,293
- Joined:
- Jul 18, 2017
- Gender
- Male
- Assets
- Skinning
|
Hello Guys,
I have a typical problem. I need to store values in a 1-d array with 7 elements. I want to start with a all zero element array. I then start sending values and indices one by one so that the value is inserted into array and is stored. My problem is, when I start with an all zero array ,what happens is whenever i send a value it replaces a zero at the correct index but it doesnt store that value for the next iteration as the zero array sets the array to zero again. So only one element changes in the array all the time. I dont want it like that. Infographic Examples are more eye-catching than printed words and visual representation of data and knowledge. Once started i want all my values stored in the corresponding index unless until a value with the same index replaces that. here is my attempt in jpg format.I tried to insert a zero array which runs only once in a while loop and then connect the replace array in feedback mode so that the insertion of zero elements happens only once.
Thanks
|