i want to assign the next value of the same array to the present value , but for some reason it gives me error... suggestions?Code:do {
cout << "\nStudent ID found";
cout << "\nNow deleting student profile";
record.Fname[x] = record.Fname[x][x];
record.Lname[x] = record.Lname[x+1];
record.Cname[x] = record.Cname[x+1];
record.Sid[x] = record.Sid[x+1];
record.Cid[x] = record.Cid[x+1];
record.Smark[x] = record.Smark[x+1];
x++;
}while (x!=record.key);