classes and arrays combined

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
If the instead of an array of a structure it was an array of int how would you "find the place of int 5 in the array?
1
2
3
4
5
6
7
int main()
{
    int box[10]; // Don't forget to give your array a size.
    // How would you find box #5?

   return 0;
}
search all of them for it until you find it. Now I kinda know how thanks
Topic archived. No new replies allowed.