Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

        Console IO using tango

        This illustrates bare console input and output

        Console I/O in Tango is UTF-8 across both linux and Win32. The
        conversion between various unicode representations is handled
        by higher level constructs, such as Stdout and Stderr



void main()
        Cout ("What is your name? ")();
        auto name = Cin.get;
        Cout ("Hello, ")(name).newline;