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
Test if vector has even amount of elemen
Test if vector has even amount of elements
Mar 8, 2014 at 6:08pm UTC
closed account (
EwCjE3v7
)
I would like to know an if statement that will test if there are even amount of element in a vector.
EDIT:
LoL just figured it out:
if
(storage.size()%2 == 0)
Last edited on
Mar 8, 2014 at 6:10pm UTC
Topic archived. No new replies allowed.