K
krini_pop
I have a string that is delimited by commas. I'm using strtok and
putting the values in a vector. In some cases, I may have 2 commas side
by side and therefore need it to insert a null value. Right now, when
it encounters this it puts the next value in the vector and throws
everything else off. Does anyone know how I can insert a null value
when tokenizing a string?
Thanks
putting the values in a vector. In some cases, I may have 2 commas side
by side and therefore need it to insert a null value. Right now, when
it encounters this it puts the next value in the vector and throws
everything else off. Does anyone know how I can insert a null value
when tokenizing a string?
Thanks