I have got a large file containing numerous sets of data, there are some blanks though marked "--" where for what ever reason the data hasn't been recorded. The rest of the data will be stored as double in a vector, my problem is how do i pick up the missing data and store this missing data as a zero? a snippet of my data file;

```
0    29.1     ---
0    65.9     ---
2    56.5     ---
6    19.7    44.3
9    69.8    64.9
11   118.6   64.8
7    35.7    64.1

if (myfile.is_open())
  {
    int count = 0;
    while ( myfile.good() )
    {
      getline (myfile,line);
      /*if (line == "---")
        {
        sun(0.0);
        }*/
      if (count > 6) 
      {

      std::istringstream buffer(line);
            int month;
            double  rain, sun;
            if (buffer >> month >> rain >> sun)
            {
                Weather objName = {month, rain, sun};
                data_weather.push_back(objName);       
            }
      }
      count++;
    }
    myfile.close();

```