I am creating a program to manipulate structures that are similar to linked lists. The problem i am having is in a text file that i am reading in there are delete lines like this.
d 1 2
d 2 3
d 3 4
d 2 0
with the first number as the row and the second as the column of the array. I have read in the variables correctly, but i am not quite sure how i would go about deleting the object at the specified position of the array. So i am suppose to read in the file and when it reaches the delete lines it deletes the row 1 column 2 object and then sets the top,bottom,left, and right objects again so the array stays linked after the specified object is deleted,and then sets currentObject equal to the first position in the linked list which is row 0 column 0, and then it repeats this step for the other specified row and column objects.
Any help would be greatly appreciated.