Answers for "compare values within within a vector c++"

C++
0

compare values within within a vector c++

for (unsigned int i = 1; i < myVector.size(); i++) 
{
    if (myVector[i].size() == myVector[i-1].size()) // .size() should be used
    {
        cout << "SAME SIZE" << endl;
    }
}
Posted by: Guest on June-26-2020

Code answers related to "compare values within within a vector c++"

Browse Popular Code Answers by Language