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

Changes between Version 2 and Version 3 of ConsoleExample

Show
Ignore:
Author:
larsivi (IP: 62.16.230.103)
Timestamp:
10/08/06 10:50:28 (8 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ConsoleExample

    v2 v3  
    44/******************************************************************************* 
    55 
    6         Console IO using Mango 
     6        Console IO using Tango 
    77 
    88        This illustrates console input and output. 
    99 
    10         Console I/O in Mango is UTF-8 across both linux and Win32. The 
     10        Console I/O in Tango is UTF-8 across both linux and Win32. The 
    1111        conversion between various unicode representations is handled 
    12         by higher level constructs, including Print, Stdin, and Stdout
     12        by higher level constructs
    1313 
    1414        Note that Cerr is tied to the console error output, and Cin is 
    1717*******************************************************************************/ 
    1818 
    19 import mango.io.Console; 
     19import tango.io.Console; 
    2020 
    2121void main() 
    2424 
    2525        Cout ("What is your name? "); 
    26         Cin  (name); 
     26        name = Cin.get (); 
    2727        Cout ("Hello, ")(name).newline; 
    2828}