Hi, I have an array with string values in there and I would like to transfer them into an int array. The values are Numbers. is there a way to do so?
Thank you
nvm, figured it out using atoi
thanks anyways
Use stringsteam. I'm pretty sure stringstream is a lot better than atoi!
Well, it certainly is if the OP actually means string when he says string.
To use atoi, it'd have to be atoi(str.cstr()), which isnt a very nice command.
Yeah, I had that problem before, when using strings. stringstream is a much better and a much easier way to do things!