Re: Yes or No Options

2015-07-27 Thread Brad Anderson via Digitalmars-d
On Monday, 27 July 2015 at 15:40:56 UTC, Alex wrote: The program quits after "writeln("Do you want to play again? Y/N?");" It ignores readln. Furthermore: What I am actually trying to do is: If I type "Y", the programm should just rerun from the beginning. I am really new to programming and

Re: Yes or No Options

2015-07-27 Thread John Colvin via Digitalmars-d
On Monday, 27 July 2015 at 15:40:56 UTC, Alex wrote: Hey guys! I am super new to programming and still trying to learn the very basics via a book that I bought. [...] This isn't the right place for this sort of question, please use http://forum.dlang.org/group/learn, I'm sure someone will

Yes or No Options

2015-07-27 Thread Alex via Digitalmars-d
Hey guys! I am super new to programming and still trying to learn the very basics via a book that I bought. My problem is the following: import std.stdio; import std.string; void main() { char[] yesno; write("Roll the dice: Enter a number!"); int dieNumber;