Advertisement
Guest User

Untitled

a guest
Mar 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. std::stringstream sourcePlayers(
  2. "C d 4 3 3 NAME OF DUDE1\n"
  3. "C f 7 1 2 NAME OF OTHER DUDE\n"
  4. "C d 3 6 5 SOME OTHER DUDE\n"
  5. );
  6. This will load those dudes in like your opening a file, You call the thing now with
  7.  
  8. 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.
  9. functionYouAreCalling(parameter1, sourcePlayers);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement