this is what im doing, im getting some info from a .txt file those are numbers of course when im getting them i get them as strings in a list of strings...(i know it could be chars but in this example is strings) so when im inserting them on another list it should be something like this
list<int> l;
//i is the iterator for the 1st list that already has all the strings
l.push_back(atoi(*i.c_str()));
i cant use c_str() because i is trying to access the elements of the list is there anyway i can do this?
basically what im trying to do is just getting my strings from one list and change them to integers while keeping the list format
any help would be really appreciated thank you