Quote Originally Posted by Ulnarian View Post
, your solution worked perfectly.
Another option would be to put those assignments in their own function, say initialize(), which is then called from the beginning of main. Initialize can be called from anywhere whenever you want to reset all client data to the initial state.