Object-Oriented Software in Ada95

Major programs from the book

The Ada 95 programs are distributed as either an archive (tar, zip, or text) or as individual programs. The programs use the package simple_io.ads which is equivalent to the packages: Ada.Text_io, Ada.Float_io, Ada.Integer_io.

Key Preview Download Split
- Bolded keywords The whole program as plain ASCII text The program split into individual units

  • 1. Problem solving
  • 2. Ada introduction: Part 1
  • 3. Ada introduction: Part 2
  • 4. Procedures and functions
  • 5. Packages as classes
    preview - download :: The package simple_io.ads
    preview - download :: split :: The class Account
    preview - download :: split :: A personnel account manager
  • 6. Data structures
  • 7. Arrays
    preview - download :: split :: The game of tick-tack-toe
    preview - download :: split :: A histogram
  • 8. Case study: Design of a game
    preview - download :: split :: The game of reversi
  • 9. Inheritance
    preview - download :: split :: The class Interest_account inherited from Account
    preview - download :: split :: Faked multiple inheritance
  • 10. Child libraries
    preview - download :: split :: A child library of the class Account
  • 11. Defining new operators
    preview - download :: split :: A rational arithmetic class
    preview - download :: split :: A string class
  • 12. Exceptions
    preview - download :: split :: A stack using an exception
  • 13. Generics
    preview - download :: split :: A generic stack
    preview - download :: split :: A generic sort function
  • 14. Dynamic memory allocation
    preview - download :: split :: A stack
  • 15. Polymorphism
    preview - download :: split :: Information about rooms in a building
  • 16. Containers
    preview - download :: split :: The list class
    preview - download :: split :: A reference counting class
    preview - download :: split :: The set class
  • 17. Input and output
  • 18. Persistence
    preview - download :: split :: A persistent list of International Dialing Codes
  • 19. Tasks
    preview - download :: split :: Two tasks
    preview - download :: split :: Optimal copying using a buffer
  • 20. System programming
  • 21. A text user interface
    preview - download :: split :: Conversion of Miles to Kilometers
    preview - download :: split :: The game of noughts and crosses
  • 22. Implementation of the TUI
    preview - download :: split :: The TUI classes
    preview - download - The I/O interface in C for the TUI classes
  • 23. Scope of declared objects
  • 24. Mixed language programming
    preview - download :: split :: An Ada program calling
    preview - download :: A C function
    preview - download :: The IO interface in C for the TUI classes
  • 00. Archive creator/expander
    preview - download :: split :: Archive expander (x80_exp.ada)
    preview - download :: split :: Archive creator

  • The Ada 95 programs are held in a text archive. which can be extracted by using the archive expander x80_exp.ada If this program is compiled into the file exp and the text archive is held in the file files, then exp files will extract all the files in the archive.

    Alternatively the files are available as a:

    The programs use the package simple_io.ads which is equivalent to the packages: Ada.Text_io, Ada.Float_Text_io, Ada.Integer_Text_io.

    Details of how to compile these programs using the compilers:


    © M.A.Smith University of Brighton. Created September 1995 last modified May 1997.
    Comments, suggestions, etc. M.A.Smith@brighton.ac.uk * [Home page]