Course Outline: Data Types and Expresions - Console input and output
- Simple data types
- Integer, float and character literals
- Declaring variables and constants
- Arithmetic operators and expressions
- Precedence and associativity
Control Flow Constructs - Selection constructs - if, else, elsif, case
- Iteration constructs - loop, for, while, exit
- Nested constructs and indentation
- Boolean types, operators and expressions
- The relational operators
- Algorithm design
Subprograms - Subprogram structure, scope and visibility
- In, out and in out parameters
- Concept of data flow
- Functions and the return mechanism
- Default parameters
- Subprogram and operator overloading
- Compilation units and the library
Type Declarations - Discrete types versus real types
- Type conversion. subtypes and subranges
- Enumerated types
- Attributes succ, pred, pos and val
- Type Character
Exceptions - Handling pre-defined exceptions
- Raising program-defined exceptions
- Exceptions and the run-time stack
- Handling exceptions within a local block
File Handling - Reading and writing text files
- The Text_IO package
| Composite Types Packages - Package structure, spec and body
- Scope considerations
- Private and limited private types
- Abstract data type in general
Generics - Generic subprograms and packages
- Generic instantiation
- Type parameters
- Subprogram parameters
Access Types - Dynamic memory allocation and the heap
- Creating linked structures
- Single linked list
- Binary tree and recursion
Tasking - Parallelism and scheduling
- Task declarations
- Synchronising tasks
- Rendezvous – entry and accept
- Select and conditional accept
|
|