How can you tell if the vector bulleon has more than 2 digits true?
for (routeIterator4 = routes[i].begin(); routeIterator4 != routes[i].end(); routeIterator4++) { for (routeIterator7 = routes[j].begin(); routeIterator7 != routes[j].end(); routeIterator7++) { if (routeIterator4->x == routeIterator7->x) { visitedPoint[routeIterator7->x] = true; } } } if (visitedPoint[true] < 2) { for (routeIterator3 = routes[i].end() - 1; routeIterator3 != routes[i].begin(); routeIterator3--) { taker.x = routeIterator3->x; routes[j].push_back(taker); } } Then I want to check if more than 1 digit is true, I do not need to continue. Posted in this form, but does not work.
And the second question, if I enter the vector with end, why it does not take the very first digit, for example, I have a list of numbers 1,2,3,4,5,6,10 , it will take and add all the digits, except for one .. What could be the problem?