how to check if the vector index

if i have 4 vector
vector<string>player_0;
vector<string>player_1={"DA","DK","HJ","H2","H3","D3","D4"};
vector<string>player_2={"HQ","HJ","DQ","DJ","D2","H5","H6"};
vector<string>player_3={"SA","C6","C7","C8","S2","S3","S4"};
vector<string>player_4={"C4","C5","C9","SK","SQ","SJ","C10"};
if SK/DK is for king of spades and king of diamond.
how do i make a for loop so that i can make all the player pass a single card from player_0 through player_4 and eventually end up with have the same suit for any of the player.??

please help
If you want to do this you should make an array out of the vectors:
1
2
3
vector<string>player[5];
...
player[1]={"DA","DK","HJ","H2","H3","D3","D4"};
Or even a vector of vectors:

std::vector<std::vector<std::string>> players;
Topic archived. No new replies allowed.