home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
PASCAL
/
NKTOOLS.ZIP
/
TEST.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1991-02-11
|
991b
|
28 lines
program test;
uses
Crt,Logger,EndWait,ErrMsg;
(* NOTE: the CRT unit *must* be listed before the LOGGER unit *)
(* (This is to assure that the LOGGER unit has control *)
(* over the standard input and output file variables. *)
(* If you reverse the ordering, the LOGGER unit won't *)
(* function at all, since CRT yanks control away from *)
(* LOGGER and goes around it). The same rule applies *)
(* to anything that may reassign the standard input and *)
(* output file variables. *)
var
Name : String;
age : Integer;
begin
ClrScr;
Window(10,10,35,20);
WriteLn;
Write('What is your name ? ');
ReadLn(Name);
WriteLn('Hello ',Name,', nice to meet you.');
WriteLn;
Write('How old are you ',Name,' ?');
ReadLn(age);
WriteLn;
WriteLn('So, your name is ',Name,' and you are ',age,' years old')
end.