I have a vector of strings im working trought, and i need to check how the string is formated.
Im using sscanf in the rest of the function and i need something like this.
if (format("%f,%f,%f")) {
// Do someting
} else if (format("%d,%d")) {
// Do something else
} else {
// Do something
}
Is this possible using sscanf or something else from std?
If you are able to use tr1 then
std::tr1::regexis the way to go.. take a look here.