I was tasked to make a student class for my project. i was supposed to take input from the user and show the resultant output using dynamic arrays. Then i need to ask the user if he/she wants to add or delete a student entry and based on his/her answer i need to dynamically allocate more memory using a copy constructor. Everything was working fine up untill the input and output parts but things have gotten confusing as i started tackling the copy constructor. There are no errors in the program but it doesnt work properly. Especially the assignment operator function and everything that follows it. Any help or tips would be helpful.
PS. I know the logic of the whole program is very confusing. sorry about that.
void Matrix::inputValues()
{
cout<<"Please enter the students full name, semester number, module number, roll number, subject 1, and subject 2. Please keep your entries to within ten characters."<<endl;
for(int a=0; a<students; a++)
{ cout<<"Student "<<a+1<<": "<<endl;
for(int b=0; b<6; b++)
{
getline(cin,ptr[a]); } cout<<endl; } cout<<endl;