hi,
I have a text file which contains two columns (seperated by \t) of double values.
I want to read them into a list<pair<double,double> >.
is this possible with the operator>> ?
if so, how? else, what's a good way to do it?
thanks
1 2 3
|
pair<double, double> pdd;
file >> pdd.first >> pdd.second;
my_list.push_back(pdd);
|
Last edited on
thank you, hamsterman!
exactly what I wanted :)