I am reading in a file of the format:
12, 10
15, 20
2, 10000
I want to read these in as x,y points. I've started out, but I'm not sure where to proceed from here... Here is what I have so far:
ifstream input("points.txt");
string line_data;
while (getline(input, line_data))
{
    int d;
    std::cout << line_data << std::endl;
    stringstream line_stream(line_data);
    while (line_stream >> d)
    {
        std::cout << d << std::endl;
    }
}
How can I read each of these lines in as an x,y integer?
 
     
     
    