stdio line-streaming revisited

Roberto Mariottini rmariottini at mail.com
Thu Mar 29 02:08:20 PDT 2007


kris wrote:
> 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);
>     }

I think I'll take a look at Tango.
Is there a tutorial, or better an examples library?

Ciao



More information about the Digitalmars-d mailing list