getline(input,C.value,',');
based on the comments, you wrote that C.value
is double. That will not fly because as others pointed out, the expected parameter is a string type in there.
You would need to read into a temporary string and then convert it to your double. The latter step is simple, but even simpler with C++11's std::stod.
Therefore, you would be writing something like this:
std::string valueString;
getline(input, valueString, ',');
C.value = std::stod(valueString);