Changes between Version 2 and Version 3 of ConsoleExample
- Timestamp:
- 10/08/06 10:50:28 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ConsoleExample
v2 v3 4 4 /******************************************************************************* 5 5 6 Console IO using Mango6 Console IO using Tango 7 7 8 8 This illustrates console input and output. 9 9 10 Console I/O in Mango is UTF-8 across both linux and Win32. The10 Console I/O in Tango is UTF-8 across both linux and Win32. The 11 11 conversion between various unicode representations is handled 12 by higher level constructs , including Print, Stdin, and Stdout.12 by higher level constructs. 13 13 14 14 Note that Cerr is tied to the console error output, and Cin is 17 17 *******************************************************************************/ 18 18 19 import mango.io.Console;19 import tango.io.Console; 20 20 21 21 void main() 24 24 25 25 Cout ("What is your name? "); 26 Cin (name);26 name = Cin.get (); 27 27 Cout ("Hello, ")(name).newline; 28 28 }