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-- purpose : queue as a unique object.
16
17-- queue_01.adb
18
19
20with Text_IO;
21use Text_IO;
22
23with Queue_01_P;
24use Queue_01_P;
25
26procedure Queue_01 is
27
28 package Flo_IO is new Float_IO(Float);
29 use Flo_IO;
30
31 Q_Element : Float := 5.0;
32
33begin
34
35 Enqueue(Q_Element);
36
37 Q_Element := Dequeue;
38
39 Put(Q_Element);
40 New_Line;
41
42end Queue_01;