Hi, Thanks Cubbi. I got your point and i'll replace with Vector everywhere. But i have small query that i almost deal with more arrays, so if i replace everything with Vector , will that affect performance ?.
Totally i'm developing algorithm. so right now my algorithm accepts 5 array parameter. if replace with Vector, its dependencies also i need to change to vector. so will that affect algorithm performance, ( data may deal with 40 crore records )
well, using STL mostly will affect performance if you don't know how to use it, vector has this problem:
a vector is allocated in a contiguous memory, so if you extend the vector it might need to reallocate all its data, that is bad for performance.
vector is good if you don't need to extend it often.