Category : object

I am new to C++ and I had problems with running this small example of inputing number of rectangle that we want to calculate the area each every one of them. Here is my code: #include<iostream> #include<conio.h> using namespace std; class Rectangle{ private: float length; float width; public: void input() { cout<<"length:"<<endl; cin>>length; cout<<"width:"<<endl; cin>>width; ..

Read more

I try to create a list of objects and increase its size by 1 if necessary by deleting the old list and creating a new one larger, but it gives an warning and then it breaks Warning C6385 Reading invalid data from ‘new_pers’: the readable size is ‘(unsigned int)*28+4′ bytes, but ’56’ bytes may be ..

Read more