Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

I/O with Mango

Part of MangoCategory

Description

Shows you how to use the Mango library for console I/O.

Example

import mango.io.Console;

void main()
{
        char[] name;

        Cout ("mango IO example #1").newline.newline;
        Cout ("What is your name? ");
        Cin  (name);
        Cout ("Hello, ") (name);
}

Source

Original:

Link http://www.dsource.org/tutorials/index.php?show_example=113
Date/Time Fri Aug 20, 2004 3:13 am

Updated:

Date/Time Wed March 29, 2006 5:32 pm
By John Demme, teqdruid