I was just wondering how to convert a vector<string> to vector<int>. I am using the transform function from <algorithm> but I am not sure what the format is.
vector <string > string; vector <int> int; tranform(string.begin(), string.end(), int.begin(), atoi);
Get a compile error. Could anyone tell me whats wrong. Thanks