Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for names with spaces #4

Closed
tagniam opened this issue Oct 12, 2017 · 2 comments
Closed

Allow for names with spaces #4

tagniam opened this issue Oct 12, 2017 · 2 comments

Comments

@tagniam
Copy link
Owner

tagniam commented Oct 12, 2017

On the first run, the user has to set the player name. Unfortunately the player name will not include characters after a space in the name. So if you enter John Doe as the player name, the name will be saved as John.

@igorantun
Copy link
Contributor

Just sent over a PR :)

@shubhamgupta1798
Copy link

scanf("%[^\n]s", score);
or getline(cin,str);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants