Swap strings around

closed account (EwCjE3v7)
Okay I have made this tic tac toe game and I was wondering if there was a way to swap the strings around without making a third string

 
  string plyr1 = "player1", plyr2 = "player2"


Use std::swap.
 
std::swap(plyr1, plyr2);
closed account (EwCjE3v7)
Thanks Peter87

I`m going to try it. Thanks
Topic archived. No new replies allowed.