Re: D and cygwin io.

2010-07-27 Thread Rory Mcguire
dcoder wrote: > Hello. Here's a short program that works in a dos window: > > import std.stdio; > > void main() { > > writef( "What is your name?"); > > string name = readln(); > writefln( "Hello " ~ name); > } > > The program prints a prompt without a newline and the user enters a nam

D and cygwin io.

2010-07-27 Thread dcoder
Hello. Here's a short program that works in a dos window: import std.stdio; void main() { writef( "What is your name?"); string name = readln(); writefln( "Hello " ~ name); } The program prints a prompt without a newline and the user enters a name and a greeting is printed. The same pr