All pastes #579493 Raw Edit

Someone

public cpp v1 · immutable
·published 2007-06-20 18:05 UTC
rendered paste body
//funktioniertPersonInfo(char *nm, char *adr, int mn, int dy, int yr):name(strncpy(name, nm, sizeof(name)-1)), address(strncpy(address, adr, sizeof(address)-1)),birthday(mn, dy, yr) {}//funktioniert nicht47: PersonInfo(char *nm, char *adr, int mn, int dy, int yr)48: {49:     strncpy(name, nm, sizeof(name)-1);50:     strncpy(address, adr, sizeof(address)-1);51:     birthday(mn, dy, yr);52: }/*Error:line 48 - no matching function for call to `Date::Date()'           candidates are:              Date::Date(const Date&)              Date::Date(int, int, int)line 51 - no match for call to `(Date) (int&, int&, int&)'