Search found 1 match

by dex123
27 Jan 2016, 11:50
Forum: Limbajul C++
Topic: Memory leak
Replies: 1
Views: 3473

Memory leak

De ce imi da la rulare memory leak in aceasta secventa? Constructor cu parametri Cladire(int an, char *loc, float p, int n, int *v) : anConstructie(an) { this->localitate=new char[strlen(loc) + 1]; strcpy(this->localitate, loc); pret = p; nrCam = n; vectorSuprafata=NULL; setVectorSuprafata(v, n); }