Ada Language and Technique Examples
Basic
Converting Strings to Integers and Back
(Botton)
Changing Strings to Upper or Lower Case
(Botton)
Declaring Decimal Fixed Point Types
(Heaney)
Factory Simulation - Tasks and Protected Types
(Rogers)
Free Pointers to Classwide Types
(Botton)
Tasking Hello World
(Rogers)
Non-consecutive Ranges
(Taft)
Perform operations on Roman numerals
(Samir)
Reading Long Strings Using Recursion
(Carlisle)
Simple File IO
(Botton)
Static Variables in Ada
(Lundquist)
Reading Files with Ada Streams
(Hoos)
Records and Sorting
(Samir)
The Get_Line Mystery
(Heaney)
Using Generics to Create a Menu
(Lamm)
What does Class mean in Ada95
(Heaney)
Sets in Ada
(Dennison)
Advanced
Accessing Memory as a String
(Dewar)
Dimensional Arithmetics (Units of Measure) in Ada
(Grein)
Dealing with Linked Lists of Tasks
(Rogers)
Executing machine code in an array
(Brown)
Freeing Pointers to Tasks
(Heaney)
Garbage collection using the Storage_Size attribute
(Botton)
Implementing Interfaces in Ada
(Falis)
In Out Parameters For Functions
(Heaney)
Memory Management with Storage Pools
(Vo)
Memory Management with Storage Pools - Update
(Vo)
Modifiying the Contents of Limited Types Passed as "in" Parameters
(Rosen)
Multiple Inheritance
(Taft)
Persistence of Type Conformity in the Generic Model
(Riehle)
Persistent Objects with Ada95
(Erdmann)
Pragma Convention(Convention => C)
(Green)
Reading Out Parameters in Ada 83
(Grein)
Safe IO
(Lamm)
Task Safe Use of Streams
(Rogers)
Turning a read-only view of an object into a read-write view
(Heaney)
Zero Size for Access Types
(Heaney)
GNAT Specific Examples
GNAT Runtime Documentation
--
Download
GNAT Inline Assembler Tutorial
(van Dijk)
GNAT.Bubble_Sort_A Example
(Botton)
GNAT.Bubble_Sort_G Example
(Botton)
GNAT.Calendar and GNAT.Calendard.Time_IO Example
(Botton)
GNAT.Case_Util Example
(Botton)
GNAT.Directory_Operations Example
(Botton)
GNAT.Heap_Sort_A Example
(Botton)
GNAT.Heap_Sort_G Example
(Botton)
GNAT.HTable.Simple_HTable Example
(Botton)
GNAT.IO Example
(Botton)
GNAT.IO_Aux Example
(Botton)
GNAT.OS_Lib Getenv example
(de Montmollin)
GNAT.Spitbol Example
(Botton)
GNAT.Spitbol.Table Example
(Botton)
GNAT.Spitbol.Table_VString Example
(Botton)
GNAT.Table Example
(Botton)
Distributed Programming
Annex E
Adept
(Waldrop)
GLADE
(ACT)
Other
COM/DCOM
Corba
Complete Programs
Tic Tac Toe
(Samir)
Small - Text Adventure - from the Lovelace Tutorial
(Wheeler)
Dining Philosophers
-
Source
requires
Claw
libs -
Exe
(Moran)
99 Bottle's of Beer
(Robinson, et al.)
See Also
An Invitation to Lady Ada's - Resolving ambiguous type conversions
(Grein)
Revenge (for Lady Ada's invitation) - Representation clauses and two's complement
(Grein)
Secretiveness
(Grein)
Ada 95's "With-ing" Problem
To contribute source code to the Treasury use the
article submission form
or e-mail
AdaSource@AdaPower.Com
Back