Hi everyone,
My question is:
I have two vectors, for example vectorA and vectorB, vectorA is filled with randomics values, like 23, 43, 54, etc, and its have 1000 members, like vectorA[0], vectorA[1], etc.
My vectorB descending of vectorA, I use the "push_back" function to take the values of vectorA, but I specificate wich ones values I want, like this:
std::vector< double > vectorA ;
std::vector< double > vectorB;
double c2 = 100;
while( c2 < 500){
vectorB.push_back(vectorA[c2]);
}
But when generate the vectorB, its have 1000 members, the vectorB[0] is equal to the vectorA[100](what I wanna in this case), and the vectorB[501 ~ 1000] is equal 0.
Can anyone help me?
Thanks!