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

Changes from Version 1 of GetUserInput/D1

Show
Ignore:
Author:
Andrej08 (IP: 93.137.24.64)
Timestamp:
09/04/10 20:28:01 (14 years ago)
Comment:

--

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 
     7Shows how you can ask the user for input during runtime. 
     8 
     9== Example == 
     10{{{ 
     11import std.stdio; 
     12 
     13void main() 
     14{ 
     15        writefln("What is your name?"); 
     16         
     17        string name = readln(); 
     18         
     19        writefln("Hello ", name); 
     20} 
     21}}}