member function with two dimensional array

This is a discussion on member function with two dimensional array within the C++ Programming forums, part of the General Programming Boards category; The class should also have a numcars member function that uses two-dimensional array to display the numbers as vertical bars.For ...

  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    4

    member function with two dimensional array

    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

    need an example code for that plz. thanks

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    2,304
    what have you tried so far?

  3. #3
    Registered User
    Join Date
    Nov 2011
    Posts
    4
    ok..

    here

    int plot([5]int[]);

  4. #4
    Registered User
    Join Date
    Oct 2006
    Posts
    2,304
    ok, explain to me what you think that means.

  5. #5
    Registered User
    Join Date
    Nov 2011
    Posts
    4
    i don't know..i am totally confused if i knew how to do it i wud never ask ..I hv completely no idea

  6. #6
    Registered User
    Join Date
    Oct 2006
    Posts
    2,304
    try this: Array Tutorial

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 2 dimensional array as a function parameter
    By ali.franco95 in forum C Programming
    Replies: 2
    Last Post: 10-12-2011, 11:38 PM
  2. Returning a two-dimensional array in a function
    By neptunusmaris in forum C Programming
    Replies: 5
    Last Post: 07-02-2009, 07:44 AM
  3. Passing 2 dimensional array to a function
    By salvadoravi in forum C Programming
    Replies: 10
    Last Post: 01-15-2008, 11:38 PM
  4. ? passing multi dimensional array to function
    By rc7j in forum C++ Programming
    Replies: 1
    Last Post: 02-10-2002, 01:19 AM
  5. Replies: 4
    Last Post: 11-07-2001, 01:46 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21