0
I want to erase 1d array on visual studio. I've been erasing the data on some index that have same value on (continue below)
user (what number that the user want to erase) input, i used looping to offer the user that he want erase again or not and when user choose erase again the array show all of index from start again not from index that some of them have deleted,how to disappear number from the previous input so the array just show the numbers left (example : first i have array 1 1 2 3 4, the user first choose erase num 1 so remain 2 3 4,but when user choose erase again like choose number 2 so just left 3 4 not 1 1 3 4 ?)
1 Answer
0
You probably don't erase, just "not showing" the numbers (which are totally different).
Without the source I cannot really help much, but I would recommend trying std::vectors (google). :)