mercredi 27 juillet 2016

How do you import c++ 11 into eclipse neon? My code is giving me errors and I heard that is the solution.

The if-statement is giving me an error and I don't know why. Is it possible something is not imported? The for loop is giving me a notice saying, "range-based loop for loop is a C++11 extension".

    string line;
    string temp = "";
    string beginning_time;

    void convertTimeintoInt(string beginning_time)
    {
      for(char a : beginning_time)
       {
        if(a == ":")
          continue;
       else
       temp += a;
       }
   }

Aucun commentaire:

Enregistrer un commentaire