Example 1: get index of value c++ vector arr = { 6, 3, 5, 2, 8 }; vector ::iterator itr = std::find(arr.begin(), arr.end(), elem); if (itr !
確定! 回上一頁