Reading CSV Data with "cin >>"

I have a program in the works that is supposed to read, store, and display data from a CSV file. I know about the string::getline() method, but I wonder if there's an easier way to do it. Let's say that most of the data is in the form of floating-point numbers. Is there a way to read the value directly into a float, ignoring the comma in the process?

Example:
1
2
cin >> somemanip >> num1;
cin >> somemanip >> num2;
Please, look at the example at the bottom of the page: http://en.cppreference.com/w/cpp/locale/ctype_char
Topic archived. No new replies allowed.