stdio line-streaming revisited
kris
foo at bar.com
Thu Mar 29 01:35:06 PDT 2007
Sean Kelly wrote:
[snip]
> I must be missing something. Why is the following not acceptable?
>
> import tango.io.Console;
>
> void main()
> {
> char[] name;
> Cout( "Please enter your name: " ).flush;
> Cin.nextLine( name );
> Cout( "Hello, " )( name )( "!" );
> }
There used to be a tango/example like this variation:
import tango.io.Console;
void main()
{
Cout ("Please enter your name: ").flush;
Cout ("Hello, ") (Cin.get);
}
More information about the Digitalmars-d
mailing list