Some updates.
This commit is contained in:
parent
a0b3856c69
commit
c019a5a884
57 changed files with 2026 additions and 0 deletions
27
2015/2015_03/ada/nauka/parse/cl1.adb
Normal file
27
2015/2015_03/ada/nauka/parse/cl1.adb
Normal file
|
@ -0,0 +1,27 @@
|
|||
with Ada.Text_IO;
|
||||
with Ada.Command_Line;
|
||||
with Ada.Strings.Fixed;
|
||||
|
||||
procedure cl2 is
|
||||
|
||||
package T_IO renames Ada.Text_IO;
|
||||
package CL renames Ada.Command_Line;
|
||||
package S renames Ada.Strings;
|
||||
package SF renames Ada.Strings.Fixed;
|
||||
|
||||
X : String := CL.Argument (1);
|
||||
|
||||
begin
|
||||
T_IO.Put ("Argument 1 = ");
|
||||
T_IO.Put_Line (X);
|
||||
|
||||
SF.Move (
|
||||
Source => CL.Argument (2),
|
||||
Target => X,
|
||||
Drop => S.Right,
|
||||
Justify => S.Left,
|
||||
Pad => S.Space);
|
||||
|
||||
T_IO.Put ("Argument 2 = ");
|
||||
T_IO.Put_Line (X);
|
||||
end cl2;
|
Loading…
Add table
Add a link
Reference in a new issue