Libraries Tutorial
87 pages
English
Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres
87 pages
English
Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres

Description

Libraries TutorialMjølner Informatics ReportMIA 94−24March 2004Copyright © 1994−2004 Mjølner Informatics.All rights reserved.No part of this document may be copied or distributedwithout the prior written permission of Mjølner Informatics Libraries TutorialTable of ContentsList of Programs................................................................................................................................11 Introduction.....................................................................................................................................21.1 Acknowledgment................................................................................................................22 Hello World......................................................................................................................................33 Simple Types and Output..............................................................................................................54 Arithmetic and Expressions..........................................................................................................94.1 Constants...........................................................................................................................94.1.1 Integer.................................................................................................................94.1.2 Reals...................................................................................... ...

Informations

Publié par
Nombre de lectures 15
Langue English

Extrait

Libraries Tutorial
Mjølner Informatics Report MIA 94−24 March 2004
Copyright © 1994−2004Mjølner Informatics. All rights reserved. No part of this document may be copied or distributed without the prior written permission of Mjølner Informatics
Libraries Tutorial
Table of Contents
List of Programs................................................................................................................................1
1 Introduction.....................................................................................................................................2 1.1 Acknowledgment................................................................................................................2
2 Hello World......................................................................................................................................3
3 Simple Types and Output..............................................................................................................5
4 Arithmetic and Expressions..........................................................................................................9 4.1 Constants...........................................................................................................................9 4.1.1 Integer.................................................................................................................9 4.1.2 Reals...................................................................................................................9 4.1.3 Booleans.............................................................................................................9 4.1.4 Textand Characters.............................................................................................9 4.2 Evaluations......................................................................................................................10
5 Multiplication Table......................................................................................................................13 5.1 The for imperative............................................................................................................13
6 Loops and Functions...................................................................................................................18
7 Assignment and Procedure Calls...............................................................................................21
8 Patterns and Variables.................................................................................................................25 8.1 Patterns and Variables.....................................................................................................25 8.2 Attribute Access...............................................................................................................26 9.1 Primitive Types................................................................................................................28 10.1 Multidimensional Repetitions.........................................................................................31 11.1 Command−line arguments.............................................................................................33 11.2 Storing Characters in a Repetition.................................................................................36 13.1 Advanced Formatted Input and Output..........................................................................38
9 Dynamic Data Structures.............................................................................................................39
10 Repetitions (Arrays)...................................................................................................................41
11 Files..............................................................................................................................................44
12 Directory......................................................................................................................................46
13 Text Manipulation.......................................................................................................................49
14 Container Library........................................................................................................................51 14.1 List Example..................................................................................................................51 14.2 HashTable Example.......................................................................................................53
15 Exceptions...................................................................................................................................55 15.1 14.1 Examples Using Exception....................................................................................55
16 Access to External Functions and Data...................................................................................57
i
Libraries Tutorial
Table of Contents
16.1 Example.........................................................................................................................57
17 Using the Persistence Library...................................................................................................61
18 Graphical User Interface............................................................................................................63 18.1 GUIEnv..........................................................................................................................63
19 Concurrent Library.....................................................................................................................69 19.1 18.1 Example.................................................................................................................69 19.2 Concurrency and User Interface Environments.............................................................71 19.3 Changes from the Original Design.................................................................................75 20.1 Interface and Implementation........................................................................................77
20 The Fragment System................................................................................................................80
Index.................................................................................................................................................83 A.............................................................................................................................................83 B.............................................................................................................................................83 C............................................................................................................................................83 E.............................................................................................................................................83 F.............................................................................................................................................83 G............................................................................................................................................83 H............................................................................................................................................83 I..............................................................................................................................................84 J.............................................................................................................................................84 L.............................................................................................................................................84 M............................................................................................................................................84 N............................................................................................................................................84 O............................................................................................................................................84 P.............................................................................................................................................84 R............................................................................................................................................84 S.............................................................................................................................................84 T.............................................................................................................................................84 W............................................................................................................................................84 X.............................................................................................................................................84
ii
  • Univers Univers
  • Ebooks Ebooks
  • Livres audio Livres audio
  • Presse Presse
  • Podcasts Podcasts
  • BD BD
  • Documents Documents