ada - print an integer in ada83(Only) Not Ada95 -


I am trying to print an integer in Ada83. All web sites have information about printing of ADA 955, that is, Integer_Text_IO.Put (C); But it has not been compiled in Ada83. How do I print an integer in Ada83? (Its a course requirement)?

integer_short_io integer_IO is an acceleration, Made available in the standard library at Eda 95.

In Aida 83, the generic package Integer_IO is present; You have to instantiate it yourself.

(You can also use Integer'Image , but it adds a disturbing prominent place for non-negative values.)

( I am not going to show the code because you say this is a school assignment.)

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -