conor0callaghan
Programmer
I have a bit of a problem, if anyone can help I would be very gratefull!
I have a vector full of strings, this vector expands each time it receives a string, but I dont want it to take in duplicates, It is very important that the vector keeps the strings in the same order that they were received first.
vec_Files["this.h","that.h","These.h","those.h","that.h","those.h"]
i want
vec_Files["this.h","that.h","These.h","those.h"]
I'm thinking of using the sort() function and unique() but they wont keep the order!
Thanks
I have a vector full of strings, this vector expands each time it receives a string, but I dont want it to take in duplicates, It is very important that the vector keeps the strings in the same order that they were received first.
vec_Files["this.h","that.h","These.h","those.h","that.h","those.h"]
i want
vec_Files["this.h","that.h","These.h","those.h"]
I'm thinking of using the sort() function and unique() but they wont keep the order!
Thanks