Thread: member function with two dimensional array

  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
    3,421
    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
    3,421
    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
    3,421
    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-16-2008, 12:38 AM
  4. ? passing multi dimensional array to function
    By rc7j in forum C++ Programming
    Replies: 1
    Last Post: 02-10-2002, 02:19 AM
  5. Replies: 4
    Last Post: 11-07-2001, 02:46 PM