How to delete record in an array?

I have this code that calls a number and is equal to the array, I need to remove the whole line:


1
2
3
4
5
6
7
8
9
10
11
cout << "Enter the number you want to delete:";
flushall ();
cin >> number;
for (int i=0; i<c, i++)
{
if (number==Person[i].Number)
{
remove (Person[i].Number) //This is the part where I need help to remove a record.
}
}
_getch ();



I hope I have explained.
Just set it equal to 0 or "" depending on what data type Person[i].Number is.
Topic archived. No new replies allowed.