adding to multidim vector

This is a discussion on adding to multidim vector within the C++ Programming forums, part of the General Programming Boards category; I have a multidimensional vector, with the first index being numbers 1-9 for amount of rows and the second being ...

  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    13

    adding to multidim vector

    I have a multidimensional vector, with the first index being numbers 1-9 for amount of rows and the second being the values in that specific row...Whats the best way to add a int to a specific row...

    Just doing a VECNAME[indexone].push_back() does not seem to add the int into indexone's row...Any help? Thanks

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    7,319
    Could you provide more code? That looks fine as is, but there are a bunch of different places where something might be wrong.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. can some one please tell me the cause of the error ?
    By broli86 in forum C Programming
    Replies: 8
    Last Post: 06-26-2008, 08:36 PM
  2. syntax help?
    By scoobygoo in forum C++ Programming
    Replies: 1
    Last Post: 08-07-2007, 10:38 AM
  3. Vector class
    By Desolation in forum C++ Programming
    Replies: 2
    Last Post: 05-12-2007, 05:44 PM
  4. Need some help/advise for Public/Private classes
    By nirali35 in forum C++ Programming
    Replies: 8
    Last Post: 09-23-2006, 12:34 PM
  5. Certain functions
    By Lurker in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2003, 12:26 AM

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