vector<string> FriendsList;
FriendsList.push_back("user1");
FriendsList.push_back("user2");
FriendsList.push_back("user3");
FriendsList.push_back("user4");
FriendsList.push_back("user5");
If I looped through that i could print the values into a string and put commas after each one, then do something like that in reverse to look for the commas to separate the values.
But I thought there was a function for that already?
I don't need to use vectors, anything that might have a function for this would work.
Thanks! :D


Sign In
Create Account


Back to top









