Konstruktoren mit Standardparametern in Headerdateien

Ich habe eine cpp-Datei wie folgt:

#include Foo.h;
Foo::Foo(int a, int b=0)
{
    this->x = a;
    this->y = b;
}

Wie Schreibe ich das in Foo.h?

InformationsquelleAutor der Frage royvandewater | 2009-09-17

Schreibe einen Kommentar