• Post Reply Bookmark Topic Watch Topic
  • New Topic

Array of Vectors

 
Rocky Summers
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi and hello!
i'm having trouble figuring out as to how to add an element in a vector that's in an array. i was thinking of something like this:

so that each element in the array has a vector of its own....
any ideas?
and how can i grab a specific index and add a String in its vector?
hope you could help..
thank you in advance.
 
Uma Balu
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Will this solve your problem???
Uma...
 
Rocky Summers
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wow thanks uma!
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!