I have a set of menu items from which a user can select multiple items from. I want the user to be able to choose as many items as they wish but heres my question.
After the selected item has been chosen, how do I remove it from the list so when the user sees the list again, they dont have the option to select the same one they just chose?
I agree with hamsterman.
Are you keeping your menu items in an array?
If you are, you can search the array for the menu item the user just chose and then write a loop that moves the values down an index. For example:
1 2 3 4 5 6 7 8
for(int i=0;i<arraySize;i++){
if(element is in array[i]){
int index = i;
for(int j=index;j<arraySize-1;j++){
array[j] = array[j+1];
}
}
}
Some of the syntax may not be right. But the full implementation is for you to do anyway.
If you are not using arrays, then just disregard what I've said. It would be much more helpful if you posted what you have.