w zakomentowanych liniach masz problem:
Więcej nie pomogę bo c++ bawiłem się 10lat temu i mi dużo wyleciało z głowy.Kod:Card::Card(char author[], char title[], int year, int quantity) { this->author = new char[strlen(author)]; //this->author = author; this->title = new char[strlen(title)]; //this->title = title; this->year = year; this->quantity = quantity; }


LinkBack URL
About LinkBacks



Cytuj