Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::stringstream sourcePlayers(
- "C d 4 3 3 NAME OF DUDE1\n"
- "C f 7 1 2 NAME OF OTHER DUDE\n"
- "C d 3 6 5 SOME OTHER DUDE\n"
- );
- This will load those dudes in like your opening a file, You call the thing now with
- Where source players is, would be the istream it's taking, sourcePlayers will be the stream your sending it, you can rename source players to anything you like.
- functionYouAreCalling(parameter1, sourcePlayers);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement