> Create two shift registers;
> 1) one will hold an index of where to start your search
> 2) the other should be an array to hold your indexes.
>
> Init your search index to zero outside the loop and wire the left SR
> to the search 1-d array.
>
A slight change you might consider is to use an ac
I hope you will settle for words. They work in all versions (:-)).
Drop a while loop and inside ti place a search 1-d array.
Create two shift registers;
1) one will hold an index of where to start your search
2) the other should be an array to hold your indexes.
Init your search index to zero ou
You can pass the array through a for loop and use the index of the for
loop for the position.
ASCologne wrote:
> Hallo,
>
> I have a large 1D-array. I want to search a certain number in it and
> save the positions into a new array.
>
> F.E.: Array 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4
Hallo,
I have a large 1D-array. I want to search a certain number in it and
save the positions into a new array.
F.E.: Array 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9 0
To be found is "3". The array I need would be 3 13 23 33.
I know how to search in an array