Changes from Version 1 of GetUserInput/D1
- Timestamp:
- 09/04/10 20:28:01 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GetUserInput/D1
v0 v1 1 = Get input from the user (uses readln) = 2 3 ''Part of'' TutorialFundamentals 4 5 == Description == 6 7 Shows how you can ask the user for input during runtime. 8 9 == Example == 10 {{{ 11 import std.stdio; 12 13 void main() 14 { 15 writefln("What is your name?"); 16 17 string name = readln(); 18 19 writefln("Hello ", name); 20 } 21 }}}