
{ name = "new" sub_name = "SUBTITLE" values = { 1, 2, 3; } input_values = { 1, 2, 3; 5, 5, 6 10, 12, 3} type = input intval = 100 }
Where mapdef is :: typedef std::vector<std::pair<std::string,std::string>>mapDef;
I am looking to store key vs values.. means [ignoring \n, \t and spaces] Name-³new² Values- 1,2,3 input_values-1, 2, 3; 5, 5, 6;10, 12, 3
I still don't quite realise what you mean. For the above specific example, how would you store every key/value in vector<pair<string, string>>? Please, fill the following: int main() { vector<pair<string, string>> output; output.push_back(make_pair(?, ?)); }