cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Content of a vector
Content of a vector
Oct 28, 2011 at 2:20am UTC
Andre Ekblom
(16)
Lets say you have a vector holding chars, and you type in that char again. How do you check if the vector is already containing that char?
Oct 28, 2011 at 6:43am UTC
coder777
(8444)
std::find(v.begin(), v.end(), ch) != v.end()
Topic archived. No new replies allowed.