Create an array that holds the position from every element from another array

前端 未结 0 1698

I want to create an array named pos that holds the position from every element from the array named per.For example if per={3,1,5,6,7,2} the pos arrays need to be pos[3]=1

相关标签:
回答
  • 消灭零回复
提交回复
热议问题