I want to push_back window into vector hashes1, but on doing so after 1st execution size of the vector was one and the element value was fine, but in 2nd execution even before the execution of hashes1.push_back(window); this statement size was still 1 but element value was replaced by the new window value and after the 2nd execution of hashes1.push_back(window); vector size was 2 and both elements were same as the last one(new value in window). Can anyone please help me here ??
vector<char *> hashes1; WS=200, SHIFT=120, FPF=50, windowStart=0; for(int count=FPF ;count && windowStart+WS <length;count--) { for(int i=0; i<WS; i++) window[i] = buffer[windowStart+i]; //addBreakPoint(window, FPF-count); hashes1.push_back(window); windowStart += SHIFT; }