Yurttas/PL/IL/Ada-95/F/05/00/C/io character p.adb
Jump to navigation
Jump to search
1--
2-- Copyright (C) 1998
3-- All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
4--
5-- Permission to use, copy, modify, and distribute this
6-- software and its documentation for EDUCATIONAL purposes
7-- and without fee is hereby granted provided that this
8-- copyright notice appears in all copies.
9--
10--
11
12-- date : January 1, 1998.
13-- author : Salih Yurttas.
14
15-- io_character_p.adb
16
17
18package body IO_Character_P is
19
20 function Get_Character(Prompt : in String) return Character is
21 V : Character;
22 begin
23
24 New_Line;
25
26 Put(Prompt);
27 Get(V);
28 Skip_Line;
29
30 New_Line;
31
32 return V;
33
34 end Get_Character;
35
36 procedure Get_Character(Prompt : in String;
37 V : out Character) is
38 begin
39
40 New_Line;
41
42 Put(Prompt);
43 Get(V);
44 Skip_Line;
45
46 New_Line;
47
48 end Get_Character;
49
50 procedure Put_Character(Header : in String;
51 V : in Character) is
52 begin
53
54 New_Line;
55
56 Put_Line(Header);
57 Put(V);
58
59 New_Line;
60
61 end Put_Character;
62
63end IO_Character_P;