mardi 21 avril 2015

array of type "c" as formal argument of member function of a class "c"

class c 

{ int I;
  public :
  void fn(c);
};

//is OK but

class c

{ int I;
  public  :
  void fn(c[]);
};

//shows error-"unidentified type "c"

//WHY?

Aucun commentaire:

Enregistrer un commentaire