My teacher asked me to simply create a scenario in C++ that uses an array of objects.
Well, i followed everything by book yet weird problem appears. What is wrong? My take is that the dynamic addressing part has problem. What is the problem? Thanks in advance.
using namespace std;
void inName(string name);
void kill::inName(string name)
cout<<"Insert the amount of people you wanna terminate"<<endl;
peopleyouhate= new kill[size];
for(int i=0; i<size; i++)
cout<<"Insert the name of the person you wanna terminate"<<endl;
cout<<"These are the people you wanna terminate, there is no more turning back..."<<endl;
for(int j=0; j<size; j++)