i am working on simple program and have stuck with this for a few days now.
How to parse integers (and possibly doubles) from character array? If it would be easier, char array can be converted to string, i mean, it is not a must have char array.
I was looking for a C++ way of
sscanf(mystring, "di %lf %lf %lf", &d1, &d2, &d3);
Problem is, i will have multiple lines of unknown length (numbers). And i'll have spaces or commas or something else delimiting numbers.
Are tokens the way? Of which i know nothing.
Well, thanks for any help.