[DiscordArchive] Why do you say the vector is pushed to twice?
[DiscordArchive] Why do you say the vector is pushed to twice?
Archived author: Revision • Posted: 2023-02-18T20:35:58.867000+00:00
Original source
Why do you say the vector is pushed to twice?
Archived author: Kitzunu • Posted: 2023-02-18T20:36:35.109000+00:00
Original source
ah wait I get what you are saying
Archived author: Honey • Posted: 2023-02-18T20:36:46.589000+00:00
Original source
I'm looking for reasons why it is having the entries twice inside the vector, like Kitzunu has proven.
Archived author: Revision • Posted: 2023-02-18T20:36:56.296000+00:00
Original source
I don't see why
Archived author: Revision • Posted: 2023-02-18T20:37:05.154000+00:00
Original source
it's only pushing to it once per entry
Archived author: Nyeriah • Posted: 2023-02-18T20:37:07.232000+00:00
Original source
better range based for
Archived author: Nyeriah • Posted: 2023-02-18T20:37:42.125000+00:00
Original source
for (auto const& variable : sZoneDifficulty...[cat][counter])
Archived author: Honey • Posted: 2023-02-18T20:37:58.896000+00:00
Original source
I had that, but i need the key in the for loop
Archived author: Honey • Posted: 2023-02-18T20:38:06.411000+00:00
Original source
I'm getting it from the i
Archived author: Revision • Posted: 2023-02-18T20:38:22.437000+00:00
Original source
just add int i = 0; and i++; inside the loop to count it