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

Changes between Version 4 and Version 5 of WaitExample

Show
Ignore:
Author:
jcc7 (IP: 192.149.244.9)
Timestamp:
01/05/07 20:21:26 (17 years ago)
Comment:

updated for DMD 1.0

Legend:

Unmodified
Added
Removed
Modified
  • WaitExample

    v4 v5  
    1212#!d 
    1313import std.c.stdio; /* for getch() */ 
    14 import std.stream; /* for stdin */ 
    1514import std.process; /* for system() */ 
    1615import std.stdio; /* for writefln */ 
    1918    writefln("Press a key (using 'std.c.stdio.getch();' to wait) . . ."); 
    2019    getch(); 
    21      
    22     writefln("Press another key (using 'std.stream.stdin.getch();') . . ."); 
    23     std.stream.stdin.getch(); 
    24      
     20 
    2521    writefln("Waiting again\n(using 'system(\"pause\");'):"); 
    2622    system("pause"); 
    2824}}} 
    2925 
    30 == Source == 
     26== Sample Batch File == 
    3127 
    32 Based on [http://jcc_7.tripod.com/d/tutor/simple/wait.html wait.html] by jcc7. 
     28{{{ 
     29@echo off 
     30set pgm=WaitExample 
     31dmd %pgm%.d 
     32%pgm%.exe 
     33pause 
     34erase %pgm%.obj 
     35erase %pgm%.map 
     36}}} 
     37 
     38== Tested Versions == 
     39 
     40Tested with Digital Mars D Compiler v1.0 on Windows 2000.