Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
with Ada.Text_IO;
|
||||
with Ada.Command_Line; use Ada.Command_Line;
|
||||
procedure SleepSort is
|
||||
task type PrintTask (num : Integer);
|
||||
task body PrintTask is begin
|
||||
delay Duration (num) / 100.0;
|
||||
Ada.Text_IO.Put(num'Img);
|
||||
end PrintTask;
|
||||
type TaskAcc is access PrintTask;
|
||||
TaskList : array (1 .. Argument_Count) of TaskAcc;
|
||||
begin
|
||||
for i in TaskList'Range loop
|
||||
TaskList(i) := new PrintTask(Integer'Value(Argument(i)));
|
||||
end loop;
|
||||
end SleepSort;
|
||||
Loading…
Add table
Add a link
Reference in a new issue