find函数

#include<vector>

using namespace std;

c++vector查找元素所在的索引下标_c++

 输出:  1表示3所在下标为1