So the dynamic memory is used while the program is running, and I can delete it before the program ends, so while system("pause") is keeping the program...
Hello! I need help about this problem. I got 4 class, one base class 'Vozilo' (Vehicle), and derived classes 'Avtobus' (Autobus), 'Avtomobil' (Car), 'Kamion' (Truck).
Does it mean that the compiler does not create copy for the returning object since it already been copied (before passed by value as a parameter to a function and copy constructor called)?
I noticed when I put class izvedena : public osnovna then the protected member test becomes again protected, but if I put private it becomes private inside the inherited class.
thanks for the reply laserlight. Usually when I go out of bond at some array, I got 13423432 number for the variable. In this case perfectly works, which is strange. Anyway, how to use that vector...
Ok, thank you. And you mean that by not defining how many objects should be used (pokazuvac=new objekat[20]) there could be memory overflow?? I think the compiler should prevent this stuff.