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

Input example #1 #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Input example #1 #5

wants to merge 1 commit into from

Conversation

amitsaha
Copy link
Contributor

@amitsaha amitsaha commented Sep 15, 2016

Adds an example from standard input. Please take a look.

@oprypin
Copy link

oprypin commented Sep 16, 2016

I think the most useful example of input would be asking the user to type "yes" or "no" and looping until a valid input is entered.

This one is too basic, and just doing nothing if the input fails isn't exactly good advice.

Copy link

@nesaulov nesaulov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the braces after gets really necessary?
@BlaXpirit +1

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

Successfully merging this pull request may close these issues.

None yet

3 participants