Checking if v contains the element x : #include <algorithm> if(std::find(v.begin(), v.end(), x) != v.end()) { /* v contains x */ } else ...
確定! 回上一頁