next up previous
Array-Initialisierung


folgende Typdefinitionen:

 
class PrivateC
{
  int i;
  char *s;
  float f;

friend ostream& printOn(ostream&, const PrivateC&, const char*);
friend ostream& printOn(ostream&, const PrivateC*, const char*, int);
};

class NoDefaultC
{
public:
  int i;
  char *s;
  float f;

  NoDefaultC(int _i, char *_s, float _f)
  : i(_i), s(_s), f(_f){}
};

class DefaultC
{
public:
  int i;
  char *s;
  float f;

  DefaultC(int _i = 0, char *_s = "", float _f = 0.0)
  : i(_i), s(_s), f(_f){}
};


next up previous