title: How to set the default value of enum type variable?
body: <p>How to set the default value of the enum type tip, I tried setting it to 0 or 1, or nothing, but I get the same error?</p>
  
  <pre><code>enum tip {
  pop,
  rap,
  rock
  };
  
  class Pesna{
  private:
  char *ime;
  int vremetraenje;
  tip tip1;
  
  public:
  //constructor
  Pesna(char *i = "NULL", int min = 0, tip t){
      ime = new char[strlen(i) + 1];
      strcpy(ime, i);
      vremetraenje = min;
      tip1 = t;
  }
  
  };
  </code></pre>