You said you had a problem with that code; would you like to explain what it is? Even for somebody who wants to try reading that code, there isn't much point without having some idea of what to look for.
Please don't post the same question more than once. I am locking your previous post.
Joined: Mar 11, 2010
Paul Clapham wrote:You said you had a problem with that code; would you like to explain what it is? Even for somebody who wants to try reading that code, there isn't much point without having some idea of what to look for.
yeah the problem is in the last section;
Basically I am trying to bring/initialise the values from the vectors within the vectors... so in each slot of the teamVector is another vector, so I am trying to bring those out, but it won't work...
String teamVector.get(1) works and gets the values of the whole vector, but when I ask for a specific slot in the vector (inside the main vector), it won't work. Maybe I should write something other than StringteamVector.get(1).get(1) ?
And the mods: I've just joined today, and the only rule was 'be nice'. Someone already told me not to post twice and that was enough. Not every single 'sheriff' needs to come and repeat what other sheriffs say. Thank you.
When you say "won't work", can you be more specific?
I mean, to me it looks like that code fragment won't even compile. So I don't see how you could run it to see what it does. But anyway, it would be helpful for you to explain your problem. If you have error messages, then tell us what they are. Tell us whether they are compiler errors or runtime errors. Post stack traces if you get them. And so on.