member function with two dimensional array

What does it mean when it says

The class should also have a numcars member function that uses two-dimensional array to display the numbers as horizontal bars.

Can someone give me an example with comments by setting up some kinda i guess code similar to what is asked in the question. thanks

Something like this.

1
2
3
4
5
class YouClass
{
  private:
    int numcars[5][100]; // member function that uses two-dimensional array 
};


Here's a link for further reference, good luck!! ^^
http://www.cplusplus.com/doc/tutorial/arrays/#multidimensional_arrays
ok it has to be private ? and what are the numbers 5 and 100

Corrected version of the question :

The class should also have a numcars member function that uses two-dimensional array to display the numbers as vertical bars.For example, the output for five numbers 1, 2, 3, 4, 5 would be
Topic archived. No new replies allowed.