What is the istringstream equivalent of sscanf and checking if 4 fields have been read in?
versusCode:if (sscanf(s, "%d %s %c %s", &id, variable, &type, value) == 4)
Code:std::istringstream mystream(s); // scan 4 fields mystream >> id; mystream >> variable; mystream >> type; mystream >> value; if (mystream ????)