I'm a bit confused with arrays with classes in them how would I let's say we have a list of boxes how would I find the place of box 5 in the array?
1 2 3 4 5 6 7 8 9 10 11 12 13 14
struct box
{
int number;
int width;
int height;
} ;
//There are 10 boxes all with there own variables
int main()
{
box boxes[];
//this is where I need to delete box 5 but how would I find out where it is
//in the array
}
sorry if this is a bit confusing I'm not exactly sure how to explain it