Re: check Input

2017-04-17 Thread dennis via Digitalmars-d-learn
thank you all! i will try

Re: check Input

2017-04-17 Thread Nicholas Wilson via Digitalmars-d-learn
On Monday, 17 April 2017 at 11:51:45 UTC, dennis wrote: Hi, try to build a little programm, but need to know how to check the input. For example: input only numbers: 0 - 9 but 1.5 for example is ok. thanks I will point you to Ali's book (free), it goes through the basics of input and out

Re: check Input

2017-04-17 Thread Nafees via Digitalmars-d-learn
On Monday, 17 April 2017 at 11:51:45 UTC, dennis wrote: Hi, try to build a little programm, but need to know how to check the input. For example: input only numbers: 0 - 9 but 1.5 for example is ok. thanks How I would do it: Run a loop, checking if the characters in input are within the

check Input

2017-04-17 Thread dennis via Digitalmars-d-learn
Hi, try to build a little programm, but need to know how to check the input. For example: input only numbers: 0 - 9 but 1.5 for example is ok. thanks