If i have 5 vectors For example vector<string>player_0;
vector<string>player_1;
vector<string>player_2;
vector<string>player_3;
vector<string>player_4;
how can i use a for loop to go from player_0 to player_1. And i have to use vectors for my players?
Relying on the name of a variable at runtime (when the names of variables no longer exist, so actually you have to create extra variables just to give them values that help you think about names of other variables), by and large, a bad idea and I suspect that you don't need to do it; I suspect that you're simply having trouble thinking about programming.
Rethink your code and don't rely on variable names at runtime.
i have to keep my strings as
vector<string>player_1;
vector<string>player_2;
vector<string>player_3;
vector<string>player_4; it is.
cz i have other functions and codes to use this way.
In the long run, you'll find that it's easier to change the code as Moschops suggested (or if there are always exactly 5 players: vector<string> players[5];). Changing your existing code and functions is essentially just a cut & paste job. It's busy work but not difficult. Knuckle down and do it.