阅读背景:

如果给定值,则查找数组索引

来源:互联网 

I want to retrieve the index in the array where the value is stored. I know the value of the item at that point in the array. I'm thinking it's similar to the findIndex function in c#. For example, array[2] = {4, 7, 8}. I know the value is 7, how do I get the value of the index, 1, if I know it is at array[1]?I want to retrieve the index in the array where




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: