When foreach loops a list, you cannot remove elements of the looped list in the loop body. You can use the iterator method, or record the index of the element to be deleted first, and then delete the elements with corresponding indexes after the for loop ends.
When foreach loops a list, you cannot remove elements of the looped list in the loop body. You can use the iterator method, or record the index of the element to be deleted first, and then delete the elements with corresponding indexes after the for loop ends.
Brother, how do we know what is in locList? What is the car_gps object? At least give me an error message