Changes between Version 4 and Version 5 of WaitExample
- Timestamp:
- 01/05/07 20:21:26 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WaitExample
v4 v5 12 12 #!d 13 13 import std.c.stdio; /* for getch() */ 14 import std.stream; /* for stdin */15 14 import std.process; /* for system() */ 16 15 import std.stdio; /* for writefln */ 19 18 writefln("Press a key (using 'std.c.stdio.getch();' to wait) . . ."); 20 19 getch(); 21 22 writefln("Press another key (using 'std.stream.stdin.getch();') . . ."); 23 std.stream.stdin.getch(); 24 20 25 21 writefln("Waiting again\n(using 'system(\"pause\");'):"); 26 22 system("pause"); 28 24 }}} 29 25 30 == S ource ==26 == Sample Batch File == 31 27 32 Based on [http://jcc_7.tripod.com/d/tutor/simple/wait.html wait.html] by jcc7. 28 {{{ 29 @echo off 30 set pgm=WaitExample 31 dmd %pgm%.d 32 %pgm%.exe 33 pause 34 erase %pgm%.obj 35 erase %pgm%.map 36 }}} 37 38 == Tested Versions == 39 40 Tested with Digital Mars D Compiler v1.0 on Windows 2000.