home *** CD-ROM | disk | FTP | other *** search
/ Programmer's ROM - The Computer Language Library / programmersrom.iso / ada / manage / managetr.doc < prev    next >
Unknown  |  1988-05-03  |  24.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert WANG Integrated Word Processor (document/wangIWP) ext Unsupported
1% dexvert Excellence! Document (document/excellenceDocument) ext Unsupported
1% dexvert Norton Textra Writer (document/textraWriter) ext Unsupported
1% dexvert IBM DisplayWrite Document (document/ibmDisplayWriteDocument) ext Unsupported
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0d 00 0d 00 0d 0a 0d 00 | 0d 00 0d 0a 0d 00 0d 00 |........|........|
|00000010| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00000020| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000030| 20 54 52 41 43 4b 45 52 | 20 46 49 4e 41 4c 20 52 | TRACKER| FINAL R|
|00000040| 45 50 4f 52 54 0d 00 0d | 00 0d 0a 0d 00 0d 00 0d |EPORT...|........|
|00000050| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000060| 20 20 20 20 20 20 77 72 | 69 74 74 65 6e 20 62 79 | wr|itten by|
|00000070| 20 42 6f 6e 6e 69 65 20 | 42 75 72 6b 68 61 72 64 | Bonnie |Burkhard|
|00000080| 74 20 61 6e 64 20 4d 61 | 79 20 4c 65 65 0d 00 0d |t and Ma|y Lee...|
|00000090| 00 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |... | |
|000000a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000000b0| 20 20 20 20 20 20 20 20 | 4d 61 79 20 31 39 38 35 | |May 1985|
|000000c0| 0d 00 0d 00 0d 0a 0d 00 | 0d 00 0d 0a 20 20 20 20 |........|.... |
|000000d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 47 54 45 | | GTE|
|000000e0| 20 47 6f 76 65 72 6e 6d | 65 6e 74 20 53 79 73 74 | Governm|ent Syst|
|000000f0| 65 6d 73 20 47 72 6f 75 | 70 20 2d 2d 20 57 65 73 |ems Grou|p -- Wes|
|00000100| 74 65 72 6e 20 44 69 76 | 69 73 69 6f 6e 0d 00 0d |tern Div|ision...|
|00000110| 00 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |... | |
|00000120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000130| 20 20 20 31 30 30 20 46 | 65 72 67 75 73 6f 6e 20 | 100 F|erguson |
|00000140| 44 72 69 76 65 0d 00 0d | 00 0d 0a 20 20 20 20 20 |Drive...|... |
|00000150| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000160| 20 20 20 20 20 20 20 20 | 4d 6f 75 6e 74 61 69 6e | |Mountain|
|00000170| 20 56 69 65 77 2c 20 43 | 41 20 20 39 34 30 33 39 | View, C|A 94039|
|00000180| 0d 00 0d 00 0d 0a 0d 00 | 0d 00 0d 0a 0d 00 0d 00 |........|........|
|00000190| 0d 0a 0d 00 0d 00 0d 0a | 0d 00 0d 00 0d 0a 0d 00 |........|........|
|000001a0| 0d 00 0d 0a 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 |........|.. |
|000001b0| 31 20 20 50 52 4f 42 4c | 45 4d 53 20 57 49 54 48 |1 PROBL|EMS WITH|
|000001c0| 20 41 44 41 0d 00 0d 00 | 0d 0a 0d 00 0d 00 0d 0a | ADA....|........|
|000001d0| 20 20 20 20 20 20 31 2e | 31 20 20 43 68 61 72 61 | 1.|1 Chara|
|000001e0| 63 74 65 72 20 54 6f 20 | 45 6e 75 6d 65 72 61 74 |cter To |Enumerat|
|000001f0| 69 6f 6e 20 54 79 70 65 | 20 43 6f 6e 76 65 72 73 |ion Type| Convers|
|00000200| 69 6f 6e 0d 00 0d 00 0d | 0a 0d 00 0d 00 0d 0a 20 |ion.....|....... |
|00000210| 20 20 20 20 20 54 68 65 | 72 65 20 69 73 20 6e 6f | The|re is no|
|00000220| 20 20 63 6f 76 65 72 73 | 69 6f 6e 20 20 62 65 74 | covers|ion bet|
|00000230| 77 65 65 6e 20 20 61 20 | 20 63 68 61 72 61 63 74 |ween a | charact|
|00000240| 65 72 20 20 61 6e 64 20 | 20 74 68 65 20 20 63 6f |er and | the co|
|00000250| 72 72 65 73 70 6f 6e 64 | 69 6e 67 0d 00 0d 00 0d |rrespond|ing.....|
|00000260| 0a 20 20 20 20 20 20 63 | 68 61 72 61 63 74 65 72 |. c|haracter|
|00000270| 20 69 6e 20 61 6e 20 65 | 6e 75 6d 65 72 61 74 69 | in an e|numerati|
|00000280| 6f 6e 20 74 79 70 65 2e | 20 20 59 6f 75 20 63 61 |on type.| You ca|
|00000290| 6e 6e 6f 74 20 77 72 69 | 74 65 3a 0d 00 0d 00 0d |nnot wri|te:.....|
|000002a0| 0a 0d 00 0d 00 0d 0a 20 | 20 20 20 20 20 20 20 20 |....... | |
|000002b0| 20 61 5f 63 68 61 72 61 | 63 74 65 72 20 3a 3d 20 | a_chara|cter := |
|000002c0| 63 68 61 72 61 63 74 65 | 72 28 61 6e 5f 65 6e 75 |characte|r(an_enu|
|000002d0| 6d 65 72 61 74 69 6f 6e | 5f 76 61 72 29 3b 0d 00 |meration|_var);..|
|000002e0| 0d 00 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|000002f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6f 72 | | or|
|00000300| 0d 00 0d 00 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|00000310| 61 6e 5f 65 6e 75 6d 65 | 72 61 74 69 6f 6e 5f 76 |an_enume|ration_v|
|00000320| 61 72 20 3a 3d 20 65 6e | 75 6d 65 72 61 74 69 6f |ar := en|umeratio|
|00000330| 6e 5f 74 79 70 65 28 63 | 68 61 72 61 63 74 65 72 |n_type(c|haracter|
|00000340| 29 3b 0d 00 0d 00 0d 0a | 0d 00 0d 00 0d 0a 0d 00 |);......|........|
|00000350| 0d 00 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 54 |.... | T|
|00000360| 68 65 20 64 69 66 66 65 | 72 65 6e 63 65 20 62 65 |he diffe|rence be|
|00000370| 74 77 65 65 6e 20 61 20 | 63 68 61 72 61 63 74 65 |tween a |characte|
|00000380| 72 20 27 61 27 20 61 6e | 64 20 74 68 65 20 20 65 |r 'a' an|d the e|
|00000390| 6e 75 6d 65 72 61 74 69 | 6f 6e 20 20 74 79 70 65 |numerati|on type|
|000003a0| 0d 00 0d 00 0d 0a 20 20 | 20 20 20 20 27 61 27 20 |...... | 'a' |
|000003b0| 20 69 73 20 20 74 68 61 | 74 20 74 68 65 20 65 6e | is tha|t the en|
|000003c0| 75 6d 65 72 61 74 69 6f | 6e 20 74 79 70 65 20 61 |umeratio|n type a|
|000003d0| 63 74 75 61 6c 6c 79 20 | 69 73 20 72 65 70 72 65 |ctually |is repre|
|000003e0| 73 65 6e 74 65 64 20 62 | 79 20 61 20 73 74 72 69 |sented b|y a stri|
|000003f0| 6e 67 0d 00 0d 00 0d 0a | 20 20 20 20 20 20 6f 66 |ng......| of|
|00000400| 20 6c 65 6e 67 74 68 20 | 74 68 72 65 65 20 61 6e | length |three an|
|00000410| 64 20 69 6e 63 6c 75 64 | 65 73 20 62 6f 74 68 20 |d includ|es both |
|00000420| 73 69 6e 67 6c 65 20 71 | 75 6f 74 65 20 63 68 61 |single q|uote cha|
|00000430| 72 61 63 74 65 72 73 2e | 20 20 20 49 6e 20 20 6f |racters.| In o|
|00000440| 72 64 65 72 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 |rder....|.. |
|00000450| 74 6f 20 20 67 65 74 20 | 20 61 72 6f 75 6e 64 20 |to get | around |
|00000460| 20 74 68 69 73 20 70 72 | 6f 62 6c 65 6d 2c 20 77 | this pr|oblem, w|
|00000470| 65 20 77 72 6f 74 65 20 | 61 20 43 4f 4e 56 45 52 |e wrote |a CONVER|
|00000480| 54 20 66 75 6e 63 74 69 | 6f 6e 20 77 68 69 63 68 |T functi|on which|
|00000490| 20 77 6f 75 6c 64 0d 00 | 0d 00 0d 0a 20 20 20 20 | would..|.... |
|000004a0| 20 20 63 6f 6e 76 65 72 | 74 20 61 6e 20 63 68 61 | conver|t an cha|
|000004b0| 72 61 63 74 65 72 20 74 | 6f 20 61 20 70 61 72 74 |racter t|o a part|
|000004c0| 69 63 75 6c 61 72 20 65 | 6e 75 6d 65 72 61 74 69 |icular e|numerati|
|000004d0| 6f 6e 20 74 79 70 65 20 | 61 6e 64 20 20 61 6e 6f |on type |and ano|
|000004e0| 74 68 65 72 20 20 74 6f | 0d 00 0d 00 0d 0a 20 20 |ther to|...... |
|000004f0| 20 20 20 20 63 6f 6e 76 | 65 72 74 20 20 66 72 6f | conv|ert fro|
|00000500| 6d 20 20 61 20 20 70 61 | 72 74 69 63 75 6c 61 72 |m a pa|rticular|
|00000510| 20 20 65 6e 75 6d 65 72 | 61 74 69 6f 6e 20 20 74 | enumer|ation t|
|00000520| 79 70 65 20 20 74 6f 20 | 20 61 20 63 68 61 72 61 |ype to | a chara|
|00000530| 63 74 65 72 2e 20 20 54 | 68 65 0d 00 0d 00 0d 0a |cter. T|he......|
|00000540| 20 20 20 20 20 20 63 68 | 61 72 61 63 74 65 72 20 | ch|aracter |
|00000550| 74 6f 20 65 6e 75 6d 65 | 72 61 74 69 6f 6e 20 43 |to enume|ration C|
|00000560| 4f 4e 56 45 52 54 20 72 | 6f 75 74 69 6e 65 20 64 |ONVERT r|outine d|
|00000570| 65 63 6c 61 72 65 64 20 | 61 20 73 74 72 69 6e 67 |eclared |a string|
|00000580| 20 6f 66 20 6c 65 6e 67 | 74 68 20 33 0d 00 0d 00 | of leng|th 3....|
|00000590| 0d 0a 20 20 20 20 20 20 | 61 6e 64 20 20 69 6e 69 |.. |and ini|
|000005a0| 74 69 61 6c 69 7a 65 64 | 20 69 74 20 74 6f 20 22 |tialized| it to "|
|000005b0| 27 20 27 22 2e 20 20 54 | 68 65 20 63 68 61 72 61 |' '". T|he chara|
|000005c0| 63 74 65 72 20 77 61 73 | 20 74 68 65 6e 20 77 72 |cter was| then wr|
|000005d0| 69 74 74 65 6e 20 69 6e | 74 6f 20 74 68 65 0d 00 |itten in|to the..|
|000005e0| 0d 00 0d 0a 20 20 20 20 | 20 20 63 65 6e 74 65 72 |.... | center|
|000005f0| 20 70 6f 73 69 74 69 6f | 6e 20 6f 66 20 74 68 65 | positio|n of the|
|00000600| 20 73 74 72 69 6e 67 2e | 20 20 54 68 65 20 65 6e | string.| The en|
|00000610| 75 6d 65 72 61 74 69 6f | 6e 20 20 74 79 70 65 20 |umeratio|n type |
|00000620| 20 77 61 73 20 20 74 68 | 65 6e 20 20 72 65 61 64 | was th|en read|
|00000630| 0d 00 0d 00 0d 0a 20 20 | 20 20 20 20 28 75 73 69 |...... | (usi|
|00000640| 6e 67 20 20 54 45 58 54 | 5f 49 4f 2e 67 65 74 29 |ng TEXT|_IO.get)|
|00000650| 20 20 66 72 6f 6d 20 20 | 74 68 65 20 20 73 74 72 | from |the str|
|00000660| 69 6e 67 2e 20 20 54 68 | 65 20 65 6e 75 6d 65 72 |ing. Th|e enumer|
|00000670| 61 74 69 6f 6e 20 74 6f | 20 63 68 61 72 61 63 74 |ation to| charact|
|00000680| 65 72 0d 00 0d 00 0d 0a | 20 20 20 20 20 20 43 4f |er......| CO|
|00000690| 4e 56 45 52 54 20 72 6f | 75 74 69 6e 65 20 77 72 |NVERT ro|utine wr|
|000006a0| 6f 74 65 20 74 68 65 20 | 65 6e 75 6d 65 72 61 74 |ote the |enumerat|
|000006b0| 69 6f 6e 20 74 79 70 65 | 20 76 61 72 69 61 62 6c |ion type| variabl|
|000006c0| 65 20 20 74 6f 20 20 61 | 20 20 73 74 72 69 6e 67 |e to a| string|
|000006d0| 20 20 6f 66 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 | of....|.. |
|000006e0| 6c 65 6e 67 74 68 20 33 | 20 61 6e 64 20 72 65 74 |length 3| and ret|
|000006f0| 75 72 6e 20 74 68 65 20 | 63 65 6e 74 65 72 20 63 |urn the |center c|
|00000700| 68 61 72 61 63 74 65 72 | 20 61 73 20 74 68 65 20 |haracter| as the |
|00000710| 76 61 6c 75 65 20 6f 66 | 20 74 68 65 20 66 75 6e |value of| the fun|
|00000720| 63 74 69 6f 6e 2e 0d 00 | 0d 00 0d 0a 0d 00 0d 00 |ction...|........|
|00000730| 0d 0a 0d 00 0d 00 0d 0a | 0d 00 0d 00 0d 0a 20 20 |........|...... |
|00000740| 20 20 20 20 31 2e 32 20 | 20 44 69 66 66 69 63 75 | 1.2 | Difficu|
|00000750| 6c 74 20 54 6f 20 52 65 | 61 64 2f 57 72 69 74 65 |lt To Re|ad/Write|
|00000760| 20 45 6e 75 6d 65 72 61 | 74 69 6f 6e 20 54 79 70 | Enumera|tion Typ|
|00000770| 65 73 0d 00 0d 00 0d 0a | 0d 00 0d 00 0d 0a 20 20 |es......|...... |
|00000780| 20 20 20 20 20 20 20 20 | 20 49 74 20 69 73 20 76 | | It is v|
|00000790| 65 72 79 20 64 69 66 66 | 69 63 75 6c 74 20 74 6f |ery diff|icult to|
|000007a0| 20 77 72 69 74 65 20 61 | 6e 20 65 6e 75 6d 65 72 | write a|n enumer|
|000007b0| 61 74 69 6f 6e 20 74 79 | 70 65 20 74 6f 20 61 20 |ation ty|pe to a |
|000007c0| 20 66 69 6c 65 20 20 61 | 6e 64 0d 00 0d 00 0d 0a | file a|nd......|
|000007d0| 20 20 20 20 20 20 72 65 | 61 64 20 69 74 20 62 61 | re|ad it ba|
|000007e0| 63 6b 20 69 6e 20 61 67 | 61 69 6e 2e 20 20 46 6f |ck in ag|ain. Fo|
|000007f0| 72 20 69 6e 73 74 61 6e | 63 65 2c 20 77 68 65 6e |r instan|ce, when|
|00000800| 20 77 72 69 74 69 6e 67 | 20 6f 75 74 20 61 20 62 | writing| out a b|
|00000810| 6f 6f 6c 65 61 6e 20 75 | 73 69 6e 67 0d 00 0d 00 |oolean u|sing....|
|00000820| 0d 0a 20 20 20 20 20 20 | 22 50 55 54 28 61 5f 62 |.. |"PUT(a_b|
|00000830| 6f 6f 6c 65 61 6e 29 3b | 22 20 61 6e 64 20 74 68 |oolean);|" and th|
|00000840| 65 6e 20 61 6e 6f 74 68 | 65 72 20 70 69 65 63 65 |en anoth|er piece|
|00000850| 20 6f 66 20 64 61 74 61 | 2c 20 20 74 68 65 20 20 | of data|, the |
|00000860| 22 50 55 54 22 20 20 72 | 6f 75 74 69 6e 65 0d 00 |"PUT" r|outine..|
|00000870| 0d 00 0d 0a 20 20 20 20 | 20 20 77 6f 75 6c 64 20 |.... | would |
|00000880| 20 65 69 74 68 65 72 20 | 20 77 72 69 74 65 20 20 | either | write |
|00000890| 22 54 52 55 45 22 20 20 | 6f 72 20 20 22 46 41 4c |"TRUE" |or "FAL|
|000008a0| 53 45 22 20 74 6f 20 74 | 68 65 20 66 69 6c 65 20 |SE" to t|he file |
|000008b0| 77 69 74 68 20 6e 6f 20 | 74 72 61 69 6c 69 6e 67 |with no |trailing|
|000008c0| 0d 00 0d 00 0d 0a 20 20 | 20 20 20 20 62 6c 61 6e |...... | blan|
|000008d0| 6b 73 20 66 6f 6c 6c 6f | 77 65 64 20 62 79 20 74 |ks follo|wed by t|
|000008e0| 68 65 20 70 69 65 63 65 | 20 6f 66 20 64 61 74 61 |he piece| of data|
|000008f0| 2e 20 20 49 6e 20 6f 72 | 64 65 72 20 74 6f 20 72 |. In or|der to r|
|00000900| 65 61 64 20 69 74 20 62 | 61 63 6b 20 77 69 74 68 |ead it b|ack with|
|00000910| 20 61 0d 00 0d 00 0d 0a | 20 20 20 20 20 20 22 47 | a......| "G|
|00000920| 45 54 28 61 5f 62 6f 6f | 6c 65 61 6e 29 3b 22 2c |ET(a_boo|lean);",|
|00000930| 20 20 74 68 65 20 20 62 | 6f 6f 6c 65 61 6e 20 20 | the b|oolean |
|00000940| 76 61 6c 75 65 20 20 6d | 75 73 74 20 65 69 74 68 |value m|ust eith|
|00000950| 65 72 20 62 65 20 66 6f | 6c 6c 6f 77 65 64 20 62 |er be fo|llowed b|
|00000960| 79 20 61 6e 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 |y an....|.. |
|00000970| 45 6e 64 5f 4f 66 5f 4c | 69 6e 65 20 6f 72 20 61 |End_Of_L|ine or a|
|00000980| 20 62 6c 61 6e 6b 2e 20 | 20 49 66 20 74 68 65 20 | blank. | If the |
|00000990| 70 69 65 63 65 20 6f 66 | 20 20 64 61 74 61 20 20 |piece of| data |
|000009a0| 77 72 69 74 74 65 6e 20 | 20 74 6f 20 20 74 68 65 |written | to the|
|000009b0| 20 20 66 69 6c 65 0d 00 | 0d 00 0d 0a 20 20 20 20 | file..|.... |
|000009c0| 20 20 66 69 6c 6c 65 64 | 20 20 69 74 73 20 20 65 | filled| its e|
|000009d0| 6e 74 69 72 65 20 20 66 | 69 65 6c 64 20 20 77 69 |ntire f|ield wi|
|000009e0| 64 74 68 2c 20 20 61 6e | 20 20 65 78 63 65 70 74 |dth, an| except|
|000009f0| 69 6f 6e 20 20 77 69 6c | 6c 20 62 65 20 72 61 69 |ion wil|l be rai|
|00000a00| 73 65 64 20 77 68 65 6e | 0d 00 0d 00 0d 0a 20 20 |sed when|...... |
|00000a10| 20 20 20 20 22 47 45 54 | 22 74 69 6e 67 20 74 68 | "GET|"ting th|
|00000a20| 65 20 62 6f 6f 6c 65 61 | 6e 20 76 61 6c 75 65 2e |e boolea|n value.|
|00000a30| 0d 00 0d 00 0d 0a 0d 00 | 0d 00 0d 0a 20 20 20 20 |........|.... |
|00000a40| 20 20 20 20 20 20 20 20 | 20 70 75 74 28 6f 75 74 | | put(out|
|00000a50| 70 75 74 5f 66 69 6c 65 | 2c 20 62 6f 6f 6c 65 61 |put_file|, boolea|
|00000a60| 6e 5f 64 61 74 61 29 3b | 0d 00 0d 00 0d 0a 20 20 |n_data);|...... |
|00000a70| 20 20 20 20 20 20 20 20 | 20 20 20 70 75 74 28 6f | | put(o|
|00000a80| 75 74 70 75 74 5f 66 69 | 6c 65 2c 20 69 6e 74 65 |utput_fi|le, inte|
|00000a90| 67 65 72 5f 64 61 74 61 | 2c 20 77 69 64 74 68 20 |ger_data|, width |
|00000aa0| 3d 3e 20 32 29 3b 0d 00 | 0d 00 0d 0a 0c 20 20 20 |=> 2);..|..... |
|00000ab0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ad0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ae0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 50 61 67 | | Pag|
|00000af0| 65 20 32 0d 00 0d 00 0d | 0a 0d 00 0d 00 0d 0a 0d |e 2.....|........|
|00000b00| 00 0d 00 0d 0a 0d 00 0d | 00 0d 0a 20 20 20 20 20 |........|... |
|00000b10| 20 20 20 20 20 4f 75 74 | 70 75 74 5f 66 69 6c 65 | Out|put_file|
|00000b20| 3a 20 46 41 4c 53 45 32 | 30 0d 00 0d 00 0d 0a 20 |: FALSE2|0...... |
|00000b30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b40| 20 20 6f 72 20 20 54 52 | 55 45 32 30 0d 00 0d 00 | or TR|UE20....|
|00000b50| 0d 0a 0d 00 0d 00 0d 0a | 20 20 20 20 20 20 20 20 |........| |
|00000b60| 20 20 20 20 20 67 65 74 | 28 69 6e 70 75 74 5f 66 | get|(input_f|
|00000b70| 69 6c 65 2c 20 20 62 6f | 6f 6c 65 61 6e 5f 64 61 |ile, bo|olean_da|
|00000b80| 74 61 29 3b 20 20 20 20 | 20 20 20 20 72 61 69 73 |ta); | rais|
|00000b90| 65 73 20 61 6e 20 65 78 | 63 65 70 74 69 6f 6e 0d |es an ex|ception.|
|00000ba0| 00 0d 00 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |..... | |
|00000bb0| 20 20 67 65 74 28 69 6e | 70 75 74 5f 66 69 6c 65 | get(in|put_file|
|00000bc0| 2c 20 20 69 6e 74 65 67 | 65 72 5f 64 61 74 61 29 |, integ|er_data)|
|00000bd0| 3b 20 20 20 20 20 20 20 | 20 20 0d 00 0d 00 0d 0a |; | ......|
|00000be0| 0d 00 0d 00 0d 0a 0d 00 | 0d 00 0d 0a 20 20 20 20 |........|.... |
|00000bf0| 20 20 20 20 20 20 20 49 | 6e 20 6f 72 64 65 72 20 | I|n order |
|00000c00| 74 6f 20 67 65 74 20 61 | 72 6f 75 6e 64 20 74 68 |to get a|round th|
|00000c10| 69 73 20 70 72 6f 62 6c | 65 6d 2c 20 79 6f 75 20 |is probl|em, you |
|00000c20| 6d 69 67 68 74 20 20 74 | 72 79 20 20 77 72 69 74 |might t|ry writ|
|00000c30| 69 6e 67 20 20 74 68 65 | 0d 00 0d 00 0d 0a 20 20 |ing the|...... |
|00000c40| 20 20 20 20 62 6f 6f 6c | 65 61 6e 20 20 76 61 6c | bool|ean val|
|00000c50| 75 65 20 77 69 74 68 20 | 61 20 66 69 65 6c 64 20 |ue with |a field |
|00000c60| 77 69 64 74 68 20 77 68 | 69 63 68 20 77 6f 75 6c |width wh|ich woul|
|00000c70| 64 20 77 72 69 74 65 20 | 22 54 52 55 45 22 20 66 |d write |"TRUE" f|
|00000c80| 6f 6c 6c 6f 77 65 64 20 | 62 79 0d 00 0d 00 0d 0a |ollowed |by......|
|00000c90| 20 20 20 20 20 20 74 77 | 6f 20 73 70 61 63 65 73 | tw|o spaces|
|00000ca0| 20 6f 72 20 22 46 41 4c | 53 45 22 20 66 6f 6c 6c | or "FAL|SE" foll|
|00000cb0| 6f 77 65 64 20 62 79 20 | 6f 6e 65 20 20 73 70 61 |owed by |one spa|
|00000cc0| 63 65 2e 20 20 20 54 68 | 65 20 20 70 72 6f 62 6c |ce. Th|e probl|
|00000cd0| 65 6d 20 20 69 73 20 20 | 74 68 61 74 0d 00 0d 00 |em is |that....|
|00000ce0| 0d 0a 20 20 20 20 20 20 | 74 68 65 72 65 20 20 69 |.. |there i|
|00000cf0| 73 20 20 6e 6f 20 20 22 | 47 45 54 22 20 72 6f 75 |s no "|GET" rou|
|00000d00| 74 69 6e 65 20 66 6f 72 | 20 65 6e 75 6d 65 72 61 |tine for| enumera|
|00000d10| 74 69 6f 6e 20 74 79 70 | 65 73 20 77 68 69 63 68 |tion typ|es which|
|00000d20| 20 77 69 6c 6c 20 61 63 | 63 65 70 74 20 61 0d 00 | will ac|cept a..|
|00000d30| 0d 00 0d 0a 20 20 20 20 | 20 20 66 69 65 6c 64 20 |.... | field |
|00000d40| 77 69 64 74 68 20 61 73 | 20 61 20 70 61 72 61 6d |width as| a param|
|00000d50| 65 74 65 72 2e 20 20 49 | 66 20 6f 6e 65 20 74 72 |eter. I|f one tr|
|00000d60| 69 65 73 20 74 6f 20 22 | 47 45 54 22 20 74 68 65 |ies to "|GET" the|
|00000d70| 20 62 6f 6f 6c 65 61 6e | 20 69 74 20 77 69 6c 6c | boolean| it will|
|00000d80| 0d 00 0d 00 0d 0a 20 20 | 20 20 20 20 72 65 61 64 |...... | read|
|00000d90| 20 20 69 6e 20 20 74 68 | 65 20 20 76 61 6c 75 65 | in th|e value|
|00000da0| 20 20 6f 66 20 20 74 68 | 65 20 65 6e 75 6d 65 72 | of th|e enumer|
|00000db0| 61 74 69 6f 6e 20 74 79 | 70 65 2c 20 62 75 74 20 |ation ty|pe, but |
|00000dc0| 6c 65 61 76 65 20 74 68 | 65 20 74 72 61 69 6c 69 |leave th|e traili|
|00000dd0| 6e 67 0d 00 0d 00 0d 0a | 20 20 20 20 20 20 62 6c |ng......| bl|
|00000de0| 61 6e 6b 73 20 28 31 20 | 6f 72 20 32 20 69 6e 20 |anks (1 |or 2 in |
|00000df0| 74 68 69 73 20 63 61 73 | 65 29 2e 20 20 54 68 65 |this cas|e). The|
|00000e00| 6e 20 20 69 74 20 20 77 | 69 6c 6c 20 20 68 61 76 |n it w|ill hav|
|00000e10| 65 20 20 74 6f 20 20 72 | 65 61 64 20 20 69 6e 20 |e to r|ead in |
|00000e20| 20 74 68 65 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 | the....|.. |
|00000e30| 61 70 70 72 6f 70 72 69 | 61 74 65 20 6e 75 6d 62 |appropri|ate numb|
|00000e40| 65 72 20 6f 66 20 62 6c | 61 6e 6b 73 20 69 6e 74 |er of bl|anks int|
|00000e50| 6f 20 61 20 64 75 6d 6d | 79 20 76 61 72 69 61 62 |o a dumm|y variab|
|00000e60| 6c 65 20 69 6e 20 6f 72 | 64 65 72 20 74 6f 20 67 |le in or|der to g|
|00000e70| 65 74 20 72 69 64 0d 00 | 0d 00 0d 0a 20 20 20 20 |et rid..|.... |
|00000e80| 20 20 6f 66 20 74 68 65 | 6d 2e 20 20 46 6f 72 20 | of the|m. For |
|00000e90| 61 20 6c 61 72 67 65 72 | 20 65 6e 75 6d 65 72 61 |a larger| enumera|
|00000ea0| 74 69 6f 6e 20 74 79 70 | 65 2c 20 61 20 76 65 72 |tion typ|e, a ver|
|00000eb0| 79 20 6c 61 72 67 65 20 | 20 63 61 73 65 20 20 73 |y large | case s|
|00000ec0| 74 61 74 65 6d 65 6e 74 | 0d 00 0d 00 0d 0a 20 20 |tatement|...... |
|00000ed0| 20 20 20 20 77 6f 75 6c | 64 20 20 62 65 20 20 6e | woul|d be n|
|00000ee0| 65 65 64 65 64 20 20 62 | 65 63 61 75 73 65 20 65 |eeded b|ecause e|
|00000ef0| 61 63 68 20 70 6f 73 73 | 69 62 6c 65 20 65 6e 75 |ach poss|ible enu|
|00000f00| 6d 65 72 61 74 69 6f 6e | 20 74 79 70 65 20 63 6f |meration| type co|
|00000f10| 75 6c 64 20 68 61 76 65 | 20 61 0d 00 0d 00 0d 0a |uld have| a......|
|00000f20| 20 20 20 20 20 20 64 69 | 66 66 65 72 65 6e 74 20 | di|fferent |
|00000f30| 73 74 72 69 6e 67 20 6c | 65 6e 67 74 68 20 61 6e |string l|ength an|
|00000f40| 64 20 61 20 63 6f 72 72 | 65 73 70 6f 6e 64 69 6e |d a corr|espondin|
|00000f50| 67 20 6e 75 6d 62 65 72 | 20 6f 66 20 62 6c 61 6e |g number| of blan|
|00000f60| 6b 73 20 74 68 61 74 20 | 68 61 76 65 0d 00 0d 00 |ks that |have....|
|00000f70| 0d 0a 20 20 20 20 20 20 | 74 6f 20 62 65 20 64 69 |.. |to be di|
|00000f80| 73 70 6f 73 65 64 20 6f | 66 2e 0d 00 0d 00 0d 0a |sposed o|f.......|
|00000f90| 0d 00 0d 00 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|00000fa0| 20 20 20 70 75 74 28 6f | 75 74 70 75 74 5f 66 69 | put(o|utput_fi|
|00000fb0| 6c 65 2c 20 62 6f 6f 6c | 65 61 6e 5f 64 61 74 61 |le, bool|ean_data|
|00000fc0| 2c 20 77 69 64 74 68 20 | 3d 3e 20 36 20 29 3b 0d |, width |=> 6 );.|
|00000fd0| 00 0d 00 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |..... | |
|00000fe0| 20 20 70 75 74 28 6f 75 | 74 70 75 74 5f 66 69 6c | put(ou|tput_fil|
|00000ff0| 65 2c 20 69 6e 74 65 67 | 65 72 5f 64 61 74 61 29 |e, integ|er_data)|
|00001000| 3b 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |; | |
|00001010| 20 0d 00 0d 00 0d 0a 0d | 00 0d 00 0d 0a 20 20 20 | .......|..... |
|00001020| 20 20 20 20 20 20 20 4f | 75 74 70 75 74 5f 66 69 | O|utput_fi|
|00001030| 6c 65 3a 20 46 41 4c 53 | 45 20 32 30 0d 00 0d 00 |le: FALS|E 20....|
|00001040| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00001050| 20 20 20 20 20 6f 72 20 | 20 54 52 55 45 20 20 32 | or | TRUE 2|
|00001060| 30 0d 00 0d 00 0d 0a 0d | 00 0d 00 0d 0a 20 20 20 |0.......|..... |
|00001070| 20 20 20 20 20 20 20 20 | 20 20 67 65 74 28 69 6e | | get(in|
|00001080| 70 75 74 5f 66 69 6c 65 | 2c 20 20 62 6f 6f 6c 65 |put_file|, boole|
|00001090| 61 6e 5f 64 61 74 61 29 | 3b 20 20 20 20 20 20 20 |an_data)|; |
|000010a0| 20 0d 00 0d 00 0d 0a 20 | 20 20 20 20 20 20 20 20 | ...... | |
|000010b0| 20 20 20 20 67 65 74 28 | 69 6e 70 75 74 5f 66 69 | get(|input_fi|
|000010c0| 6c 65 2c 20 20 69 6e 74 | 65 67 65 72 5f 64 61 74 |le, int|eger_dat|
|000010d0| 61 2c 20 77 69 64 74 68 | 20 3d 3e 20 32 29 3b 20 |a, width| => 2); |
|000010e0| 20 20 20 20 20 20 20 20 | 0d 00 0d 00 0d 0a 0d 00 | |........|
|000010f0| 0d 00 0d 0a 20 20 20 20 | 20 20 20 20 20 20 52 65 |.... | Re|
|00001100| 73 75 6c 74 3a 20 62 6f | 6f 6c 65 61 6e 5f 64 61 |sult: bo|olean_da|
|00001110| 74 61 20 3d 20 46 41 4c | 53 45 0d 00 0d 00 0d 0a |ta = FAL|SE......|
|00001120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001130| 20 20 69 6e 74 65 67 65 | 72 5f 64 61 74 61 20 3d | intege|r_data =|
|00001140| 20 32 20 20 20 20 20 20 | 20 72 65 61 64 73 20 74 | 2 | reads t|
|00001150| 68 65 20 62 6c 61 6e 6b | 20 61 73 20 74 68 65 20 |he blank| as the |
|00001160| 66 69 72 73 74 20 64 69 | 67 69 74 0d 00 0d 00 0d |first di|git.....|
|00001170| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001190| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011a0| 20 77 65 20 72 65 61 6c | 6c 79 20 77 61 6e 74 20 | we real|ly want |
|000011b0| 74 68 65 20 76 61 6c 75 | 65 20 32 30 0d 00 0d 00 |the valu|e 20....|
|000011c0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|000011d0| 6f 72 20 20 62 6f 6f 6c | 65 61 6e 5f 64 61 74 61 |or bool|ean_data|
|000011e0| 20 3d 20 54 52 55 45 0d | 00 0d 00 0d 0a 20 20 20 | = TRUE.|..... |
|000011f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 69 | | i|
|00001200| 6e 74 65 67 65 72 5f 64 | 61 74 61 20 20 20 72 65 |nteger_d|ata re|
|00001210| 61 64 73 20 32 20 62 6c | 61 6e 6b 73 2c 20 72 61 |ads 2 bl|anks, ra|
|00001220| 69 73 65 73 20 64 61 74 | 61 5f 65 72 72 6f 72 20 |ises dat|a_error |
|00001230| 65 78 63 65 70 74 69 6f | 6e 0d 00 0d 00 0d 0a 0d |exceptio|n.......|
|00001240| 00 0d 00 0d 0a 0d 00 0d | 00 0d 0a 20 20 20 20 20 |........|... |
|00001250| 20 20 20 20 20 20 54 68 | 65 72 65 20 61 72 65 20 | Th|ere are |
|00001260| 61 20 66 65 77 20 77 61 | 79 73 20 74 6f 20 67 65 |a few wa|ys to ge|
|00001270| 74 20 61 72 6f 75 6e 64 | 20 74 68 69 73 20 70 72 |t around| this pr|
|00001280| 6f 62 6c 65 6d 2e 20 20 | 4f 6e 65 20 69 73 20 74 |oblem. |One is t|
|00001290| 6f 20 75 73 65 20 61 0d | 00 0d 00 0d 0a 20 20 20 |o use a.|..... |
|000012a0| 20 20 20 53 45 54 5f 43 | 4f 4c 28 78 29 20 20 62 | SET_C|OL(x) b|
|000012b0| 65 66 6f 72 65 20 20 61 | 6e 64 20 20 61 66 74 65 |efore a|nd afte|
|000012c0| 72 20 20 61 20 22 50 55 | 54 22 20 6f 72 20 22 47 |r a "PU|T" or "G|
|000012d0| 45 54 22 2c 20 6d 61 6b | 69 6e 67 20 73 75 72 65 |ET", mak|ing sure|
|000012e0| 20 74 68 61 74 20 74 68 | 65 0d 00 0d 00 0d 0a 20 | that th|e...... |
|000012f0| 20 20 20 20 20 66 69 65 | 6c 64 77 69 64 74 68 20 | fie|ldwidth |
|00001300| 66 6f 72 20 74 68 65 20 | 65 6e 75 6d 65 72 61 74 |for the |enumerat|
|00001310| 69 6f 6e 20 74 79 70 65 | 20 69 73 20 31 20 73 70 |ion type| is 1 sp|
|00001320| 61 63 65 20 6c 6f 6e 67 | 65 72 20 74 68 61 6e 20 |ace long|er than |
|00001330| 74 68 65 20 6c 6f 6e 67 | 65 73 74 0d 00 0d 00 0d |the long|est.....|
|00001340| 0a 20 20 20 20 20 20 6e | 61 6d 65 20 20 69 6e 20 |. n|ame in |
|00001350| 20 74 68 65 20 65 6e 75 | 6d 65 72 61 74 69 6f 6e | the enu|meration|
|00001360| 20 74 79 70 65 2e 20 20 | 41 6e 6f 74 68 65 72 20 | type. |Another |
|00001370| 77 61 79 20 69 73 20 74 | 6f 20 77 72 69 74 65 20 |way is t|o write |
|00001380| 6f 75 74 20 73 6f 6d 65 | 74 68 69 6e 67 0d 00 0d |out some|thing...|
|00001390| 00 0d 0a 20 20 20 20 20 | 20 65 6c 73 65 20 74 6f |... | else to|
|000013a0| 20 74 68 65 20 66 69 65 | 6c 64 2c 20 73 75 63 68 | the fie|ld, such|
|000013b0| 20 61 73 20 27 54 27 20 | 6f 72 20 27 46 27 2e 20 | as 'T' |or 'F'. |
|000013c0| 20 49 74 20 69 73 20 61 | 6c 73 6f 20 70 6f 73 73 | It is a|lso poss|
|000013d0| 69 62 6c 65 20 20 74 6f | 20 20 77 72 69 74 65 0d |ible to| write.|
|000013e0| 00 0d 00 0d 0a 20 20 20 | 20 20 20 74 68 65 20 20 |..... | the |
|000013f0| 65 6e 75 6d 65 72 61 74 | 69 6f 6e 20 74 79 70 65 |enumerat|ion type|
|00001400| 20 74 6f 20 74 68 65 20 | 66 69 6c 65 20 77 69 74 | to the |file wit|
|00001410| 68 20 61 20 64 65 66 61 | 75 6c 74 20 66 69 65 6c |h a defa|ult fiel|
|00001420| 64 20 77 69 64 74 68 2c | 20 66 6f 6c 6c 6f 77 65 |d width,| followe|
|00001430| 64 0d 00 0d 00 0d 0a 20 | 20 20 20 20 20 62 79 20 |d...... | by |
|00001440| 61 20 70 75 74 28 27 20 | 27 29 3b 2e 20 20 57 68 |a put(' |');. Wh|
|00001450| 65 6e 20 72 65 61 64 69 | 6e 67 20 74 68 65 20 64 |en readi|ng the d|
|00001460| 61 74 61 20 69 6e 2c 20 | 20 74 68 65 20 20 65 6e |ata in, | the en|
|00001470| 75 6d 65 72 61 74 69 6f | 6e 20 20 76 61 72 69 61 |umeratio|n varia|
|00001480| 62 6c 65 0d 00 0d 00 0d | 0a 20 20 20 20 20 20 77 |ble.....|. w|
|00001490| 6f 75 6c 64 20 62 65 20 | 72 65 61 64 20 66 69 72 |ould be |read fir|
|000014a0| 73 74 20 61 6e 64 20 61 | 20 64 75 6d 6d 79 20 63 |st and a| dummy c|
|000014b0| 68 61 72 61 63 74 65 72 | 20 72 65 61 64 20 6e 65 |haracter| read ne|
|000014c0| 78 74 2e 0d 00 0d 00 0d | 0a 0d 00 0d 00 0d 0a 0d |xt......|........|
|000014d0| 00 0d 00 0d 0a 0d 00 0d | 00 0d 0a 20 20 20 20 20 |........|... |
|000014e0| 20 31 2e 33 20 20 52 6f | 75 74 69 6e 65 20 57 68 | 1.3 Ro|utine Wh|
|000014f0| 69 63 68 20 54 72 75 6e | 63 61 74 65 73 20 41 20 |ich Trun|cates A |
|00001500| 46 6c 6f 61 74 69 6e 67 | 20 50 6f 69 6e 74 20 4e |Floating| Point N|
|00001510| 75 6d 62 65 72 20 54 6f | 20 41 6e 20 49 6e 74 65 |umber To| An Inte|
|00001520| 67 65 72 20 20 49 73 0d | 00 0d 00 0d 0a 20 20 20 |ger Is.|..... |
|00001530| 20 20 20 20 20 20 20 20 | 4c 61 63 6b 69 6e 67 0d | |Lacking.|
|00001540| 00 0d 00 0d 0a 0d 00 0d | 00 0d 0a 20 20 20 20 20 |........|... |
|00001550| 20 20 20 20 20 20 54 68 | 65 72 65 20 69 73 20 6e | Th|ere is n|
|00001560| 6f 20 74 72 75 6e 63 61 | 74 69 6f 6e 20 72 6f 75 |o trunca|tion rou|
|00001570| 74 69 6e 65 20 69 6e 20 | 41 64 61 20 77 68 69 63 |tine in |Ada whic|
|00001580| 68 20 77 69 6c 6c 20 74 | 72 75 6e 63 61 74 65 20 |h will t|runcate |
|00001590| 61 20 66 6c 6f 61 74 0d | 00 0d 00 0d 0a 20 20 20 |a float.|..... |
|000015a0| 20 20 20 74 6f 20 20 61 | 6e 20 20 69 6e 74 65 67 | to a|n integ|
|000015b0| 65 72 2e 20 20 20 54 68 | 65 20 20 66 75 6e 63 74 |er. Th|e funct|
|000015c0| 69 6f 6e 20 20 22 72 65 | 61 6c 28 61 6e 5f 69 6e |ion "re|al(an_in|
|000015d0| 74 65 67 65 72 29 22 20 | 61 6c 77 61 79 73 20 72 |teger)" |always r|
|000015e0| 6f 75 6e 64 73 20 74 68 | 65 0d 00 0d 00 0d 0a 20 |ounds th|e...... |
|000015f0| 20 20 20 20 20 76 61 6c | 75 65 20 62 65 66 6f 72 | val|ue befor|
|00001600| 65 20 61 73 73 69 67 6e | 69 6e 67 20 69 74 20 74 |e assign|ing it t|
|00001610| 6f 20 74 68 65 20 69 6e | 74 65 67 65 72 2e 0d 00 |o the in|teger...|
|00001620| 0d 00 0d 0a 0c 20 20 20 | 20 20 20 20 20 20 20 20 |..... | |
|00001630| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001640| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001650| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001660| 20 20 20 20 20 50 61 67 | 65 20 33 0d 00 0d 00 0d | Pag|e 3.....|
|00001670| 0a 0d 00 0d 00 0d 0a 0d | 00 0d 00 0d 0a 20 20 20 |........|..... |
|00001680| 20 20 20 31 2e 34 20 20 | 4c 69 62 72 61 72 79 20 | 1.4 |Library |
|00001690| 4d 61 6e 61 67 65 6d 65 | 6e 74 20 50 72 6f 68 69 |Manageme|nt Prohi|
|000016a0| 62 69 74 65 64 20 4f 76 | 65 72 6c 6f 61 64 69 6e |bited Ov|erloadin|
|000016b0| 67 20 4f 66 20 53 6f 6d | 65 20 50 72 6f 63 65 64 |g Of Som|e Proced|
|000016c0| 75 72 65 20 4e 61 6d 65 | 73 0d 00 0d 00 0d 0a 0d |ure Name|s.......|
|000016d0| 00 0d 00 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |..... | |
|000016e0| 54 68 65 20 44 45 43 20 | 4c 69 62 72 61 72 79 20 |The DEC |Library |
|000016f0| 4d 61 6e 61 67 65 6d 65 | 6e 74 20 73 79 73 74 65 |Manageme|nt syste|
|00001700| 6d 20 63 72 65 61 74 65 | 73 20 61 20 73 65 70 61 |m create|s a sepa|
|00001710| 72 61 74 65 20 66 69 6c | 65 20 69 6e 20 20 74 68 |rate fil|e in th|
|00001720| 65 0d 00 0d 00 0d 0a 20 | 20 20 20 20 20 6c 69 62 |e...... | lib|
|00001730| 72 61 72 79 20 66 6f 72 | 20 65 61 63 68 20 72 6f |rary for| each ro|
|00001740| 75 74 69 6e 65 20 74 68 | 61 74 20 69 73 20 22 73 |utine th|at is "s|
|00001750| 65 70 61 72 61 74 65 22 | 2e 20 20 45 76 65 6e 20 |eparate"|. Even |
|00001760| 74 68 6f 75 67 68 20 74 | 68 65 20 41 64 61 20 6e |though t|he Ada n|
|00001770| 61 6d 65 0d 00 0d 00 0d | 0a 20 20 20 20 20 20 6d |ame.....|. m|
|00001780| 61 79 20 62 65 20 41 2e | 42 2e 44 20 6f 72 20 41 |ay be A.|B.D or A|
|00001790| 2e 43 2e 44 2c 20 74 68 | 65 20 66 69 6c 65 6e 61 |.C.D, th|e filena|
|000017a0| 6d 65 20 63 72 65 61 74 | 65 64 20 69 6e 20 74 68 |me creat|ed in th|
|000017b0| 65 20 6c 69 62 72 61 72 | 79 20 20 69 73 20 20 66 |e librar|y is f|
|000017c0| 6f 72 6d 65 64 0d 00 0d | 00 0d 0a 20 20 20 20 20 |ormed...|... |
|000017d0| 20 62 79 20 20 61 70 70 | 65 6e 64 69 6e 67 20 20 | by app|ending |
|000017e0| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |the name| of the |
|000017f0| 66 69 72 73 74 20 6f 72 | 20 70 61 72 65 6e 74 20 |first or| parent |
|00001800| 75 6e 69 74 20 74 6f 20 | 74 68 65 20 6e 61 6d 65 |unit to |the name|
|00001810| 20 6f 66 20 74 68 65 0d | 00 0d 00 0d 0a 20 20 20 | of the.|..... |
|00001820| 20 20 20 6c 61 73 74 20 | 75 6e 69 74 2e 20 20 57 | last |unit. W|
|00001830| 69 74 68 20 62 6f 74 68 | 20 41 2e 42 2e 44 20 61 |ith both| A.B.D a|
|00001840| 6e 64 20 41 2e 43 2e 44 | 2c 20 74 68 65 20 6c 69 |nd A.C.D|, the li|
|00001850| 62 72 61 72 79 20 66 69 | 6c 65 6e 61 6d 65 20 63 |brary fi|lename c|
|00001860| 72 65 61 74 65 64 20 69 | 73 0d 00 0d 00 0d 0a 20 |reated i|s...... |
|00001870| 20 20 20 20 20 22 41 5f | 5f 44 22 2e 20 20 20 54 | "A_|_D". T|
|00001880| 68 65 20 20 6c 69 62 72 | 61 72 79 20 20 6d 61 6e |he libr|ary man|
|00001890| 61 67 65 6d 65 6e 74 20 | 73 79 73 74 65 6d 20 74 |agement |system t|
|000018a0| 68 65 6e 20 70 72 6f 68 | 69 62 69 74 73 20 74 68 |hen proh|ibits th|
|000018b0| 65 20 75 73 65 72 20 66 | 72 6f 6d 0d 00 0d 00 0d |e user f|rom.....|
|000018c0| 0a 20 20 20 20 20 20 63 | 72 65 61 74 69 6e 67 20 |. c|reating |
|000018d0| 74 77 6f 20 64 69 66 66 | 65 72 65 6e 74 20 66 69 |two diff|erent fi|
|000018e0| 6c 65 73 20 6f 66 20 74 | 68 65 20 73 61 6d 65 20 |les of t|he same |
|000018f0| 6e 61 6d 65 2e 0d 00 0d | 00 0d 0a 0d 00 0d 00 0d |name....|........|
|00001900| 0a 20 20 20 20 20 20 20 | 20 20 20 20 49 6e 20 54 |. | In T|
|00001910| 52 41 43 4b 45 52 2c 20 | 77 65 20 63 72 65 61 74 |RACKER, |we creat|
|00001920| 65 64 20 35 20 64 69 66 | 66 65 72 65 6e 74 20 70 |ed 5 dif|ferent p|
|00001930| 61 63 6b 61 67 65 73 2c | 20 65 61 63 68 20 20 77 |ackages,| each w|
|00001940| 6f 72 6b 69 6e 67 20 20 | 6f 6e 20 20 61 0d 00 0d |orking |on a...|
|00001950| 00 0d 0a 20 20 20 20 20 | 20 64 69 66 66 65 72 65 |... | differe|
|00001960| 6e 74 20 20 74 79 70 65 | 20 20 6f 66 20 20 64 61 |nt type| of da|
|00001970| 74 61 2e 20 20 20 45 61 | 63 68 20 20 70 61 63 6b |ta. Ea|ch pack|
|00001980| 61 67 65 20 20 68 61 73 | 20 20 72 6f 75 74 69 6e |age has| routin|
|00001990| 65 73 20 73 75 63 68 20 | 61 73 20 41 44 44 2c 0d |es such |as ADD,.|
|000019a0| 00 0d 00 0d 0a 20 20 20 | 20 20 20 53 45 54 5f 55 |..... | SET_U|
|000019b0| 50 2c 20 4d 4f 44 49 46 | 59 2c 20 61 6e 64 20 44 |P, MODIF|Y, and D|
|000019c0| 45 4c 45 54 45 2e 20 20 | 54 68 65 73 65 20 72 6f |ELETE. |These ro|
|000019d0| 75 74 69 6e 65 73 20 77 | 6f 75 6c 64 20 74 68 65 |utines w|ould the|
|000019e0| 6e 20 62 65 20 72 65 66 | 65 72 72 65 64 20 20 74 |n be ref|erred t|
|000019f0| 6f 0d 00 0d 00 0d 0a 20 | 20 20 20 20 20 61 73 20 |o...... | as |
|00001a00| 20 45 4c 45 4d 45 4e 54 | 5f 50 4b 47 2e 41 44 44 | ELEMENT|_PKG.ADD|
|00001a10| 2c 20 20 41 43 54 49 56 | 49 54 59 5f 50 4b 47 2e |, ACTIV|ITY_PKG.|
|00001a20| 41 44 44 2c 20 20 65 74 | 63 2e 20 20 20 42 65 63 |ADD, et|c. Bec|
|00001a30| 61 75 73 65 20 6f 66 20 | 74 68 65 20 6c 69 62 72 |ause of |the libr|
|00001a40| 61 72 79 0d 00 0d 00 0d | 0a 20 20 20 20 20 20 6d |ary.....|. m|
|00001a50| 61 6e 61 67 65 6d 65 6e | 74 20 70 72 6f 62 6c 65 |anagemen|t proble|
|00001a60| 6d 2c 20 77 65 20 77 65 | 72 65 20 66 6f 72 63 65 |m, we we|re force|
|00001a70| 64 20 74 6f 20 61 70 70 | 65 6e 64 20 70 72 65 66 |d to app|end pref|
|00001a80| 69 78 65 73 20 74 6f 20 | 74 68 65 20 20 72 6f 75 |ixes to |the rou|
|00001a90| 74 69 6e 65 73 0d 00 0d | 00 0d 0a 20 20 20 20 20 |tines...|... |
|00001aa0| 20 73 6f 20 20 74 68 65 | 20 20 6e 61 6d 65 20 20 | so the| name |
|00001ab0| 6f 66 20 20 65 61 63 68 | 20 72 6f 75 74 69 6e 65 |of each| routine|
|00001ac0| 20 77 6f 75 6c 64 20 62 | 65 20 75 6e 69 71 75 65 | would b|e unique|
|00001ad0| 2e 20 20 4e 6f 77 20 74 | 68 65 20 72 6f 75 74 69 |. Now t|he routi|
|00001ae0| 6e 65 73 20 61 72 65 0d | 00 0d 00 0d 0a 20 20 20 |nes are.|..... |
|00001af0| 20 20 20 72 65 66 65 72 | 72 65 64 20 74 6f 20 61 | refer|red to a|
|00001b00| 73 20 45 4c 45 4d 45 4e | 54 5f 50 4b 47 2e 45 4c |s ELEMEN|T_PKG.EL|
|00001b10| 5f 41 44 44 2c 20 41 43 | 54 49 56 49 54 59 5f 50 |_ADD, AC|TIVITY_P|
|00001b20| 4b 47 2e 41 43 5f 41 44 | 44 2c 20 65 74 63 2e 0d |KG.AC_AD|D, etc..|
|00001b30| 00 0d 00 0d 0a 0d 00 0d | 00 0d 0a 0d 00 0d 00 0d |........|........|
|00001b40| 0a 0d 00 0d 00 0d 0a 20 | 20 20 20 20 20 31 2e 35 |....... | 1.5|
|00001b50| 20 20 54 45 58 54 5f 49 | 4f 2e 73 65 74 5f 63 6f | TEXT_I|O.set_co|
|00001b60| 6c 28 6e 29 20 4f 6e 6c | 79 20 41 63 63 65 70 74 |l(n) Onl|y Accept|
|00001b70| 73 20 54 79 70 65 20 43 | 4f 55 4e 54 0d 00 0d 00 |s Type C|OUNT....|
|00001b80| 0d 0a 0d 00 0d 00 0d 0a | 20 20 20 20 20 20 20 20 |........| |
|00001b90| 20 20 20 54 68 65 20 54 | 45 58 54 5f 49 4f 2e 73 | The T|EXT_IO.s|
|00001ba0| 65 74 5f 63 6f 6c 28 6e | 29 20 72 6f 75 74 69 6e |et_col(n|) routin|
|00001bb0| 65 20 77 69 6c 6c 20 6e | 6f 74 20 61 63 63 65 70 |e will n|ot accep|
|00001bc0| 74 20 61 20 20 76 61 72 | 69 61 62 6c 65 20 20 6f |t a var|iable o|
|00001bd0| 72 20 20 61 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 |r a....|.. |
|00001be0| 63 6f 6e 73 74 61 6e 74 | 20 20 6f 66 20 20 74 79 |constant| of ty|
|00001bf0| 70 65 20 20 69 6e 74 65 | 67 65 72 20 61 73 20 61 |pe inte|ger as a|
|00001c00| 20 70 61 72 61 6d 65 74 | 65 72 2c 20 6f 6e 6c 79 | paramet|er, only|
|00001c10| 20 73 6f 6d 65 74 68 69 | 6e 67 20 6f 66 20 74 68 | somethi|ng of th|
|00001c20| 65 20 74 79 70 65 0d 00 | 0d 00 0d 0a 20 20 20 20 |e type..|.... |
|00001c30| 20 20 43 4f 55 4e 54 2e | 20 20 49 74 20 77 6f 75 | COUNT.| It wou|
|00001c40| 6c 64 20 62 65 20 6d 75 | 63 68 20 6e 69 63 65 72 |ld be mu|ch nicer|
|00001c50| 20 69 66 20 43 4f 55 4e | 54 20 77 65 72 65 20 61 | if COUN|T were a|
|00001c60| 20 73 75 62 74 79 70 65 | 20 6f 66 20 74 68 65 20 | subtype| of the |
|00001c70| 69 6e 74 65 67 65 72 73 | 0d 00 0d 00 0d 0a 20 20 |integers|...... |
|00001c80| 20 20 20 20 69 6e 73 74 | 65 61 64 20 6f 66 20 61 | inst|ead of a|
|00001c90| 20 73 65 70 61 72 61 74 | 65 20 74 79 70 65 2e 0d | separat|e type..|
|00001ca0| 00 0d 00 0d 0a 0d 00 0d | 00 0d 0a 0d 00 0d 00 0d |........|........|
|00001cb0| 0a 0d 00 0d 00 0d 0a 20 | 20 20 20 20 20 31 2e 36 |....... | 1.6|
|00001cc0| 20 20 46 69 6c 65 73 20 | 4e 61 6d 65 73 20 44 69 | Files |Names Di|
|00001cd0| 66 66 65 72 20 46 72 6f | 6d 20 54 68 65 20 52 6f |ffer Fro|m The Ro|
|00001ce0| 75 74 69 6e 65 20 4e 61 | 6d 65 73 0d 00 0d 00 0d |utine Na|mes.....|
|00001cf0| 0a 0d 00 0d 00 0d 0a 20 | 20 20 20 20 20 20 20 20 |....... | |
|00001d00| 20 20 54 68 65 20 20 66 | 69 6c 65 20 20 6e 61 6d | The f|ile nam|
|00001d10| 65 73 20 20 61 72 65 20 | 20 6d 75 63 68 20 20 73 |es are | much s|
|00001d20| 68 6f 72 74 65 72 20 20 | 69 6e 20 20 6c 65 6e 67 |horter |in leng|
|00001d30| 74 68 20 20 74 68 61 6e | 20 20 74 68 65 20 20 6d |th than| the m|
|00001d40| 6f 72 65 0d 00 0d 00 0d | 0a 20 20 20 20 20 20 64 |ore.....|. d|
|00001d50| 65 73 63 72 69 70 74 69 | 76 65 20 20 72 6f 75 74 |escripti|ve rout|
|00001d60| 69 6e 65 20 20 6e 61 6d | 65 73 2e 20 20 54 68 69 |ine nam|es. Thi|
|00001d70| 73 20 69 73 20 62 65 63 | 61 75 73 65 20 74 68 65 |s is bec|ause the|
|00001d80| 20 66 69 6c 65 73 20 77 | 69 6c 6c 20 62 65 20 6c | files w|ill be l|
|00001d90| 6f 61 64 65 64 0d 00 0d | 00 0d 0a 20 20 20 20 20 |oaded...|... |
|00001da0| 20 6f 6e 74 6f 20 61 20 | 56 61 78 20 74 68 61 74 | onto a |Vax that|
|00001db0| 20 64 6f 65 73 20 6e 6f | 74 20 79 65 74 20 68 61 | does no|t yet ha|
|00001dc0| 76 65 20 74 68 65 20 6e | 65 77 20 56 4d 53 20 20 |ve the n|ew VMS |
|00001dd0| 76 65 72 73 69 6f 6e 20 | 20 34 2e 30 20 20 6f 70 |version | 4.0 op|
|00001de0| 65 72 61 74 69 6e 67 0d | 00 0d 00 0d 0a 20 20 20 |erating.|..... |
|00001df0| 20 20 20 73 79 73 74 65 | 6d 20 20 6f 6e 20 20 69 | syste|m on i|
|00001e00| 74 2e 20 20 20 54 68 69 | 73 20 20 6d 65 61 6e 73 |t. Thi|s means|
|00001e10| 20 74 68 61 74 20 74 68 | 65 20 6f 6c 64 65 72 20 | that th|e older |
|00001e20| 6f 70 65 72 61 74 69 6e | 67 20 73 79 73 74 65 6d |operatin|g system|
|00001e30| 20 77 69 6c 6c 20 6e 6f | 74 0d 00 0d 00 0d 0a 20 | will no|t...... |
|00001e40| 20 20 20 20 20 61 63 63 | 65 70 74 20 6c 6f 6e 67 | acc|ept long|
|00001e50| 20 66 69 6c 65 20 6e 61 | 6d 65 73 20 20 6f 72 20 | file na|mes or |
|00001e60| 20 66 69 6c 65 20 20 6e | 61 6d 65 73 20 20 74 68 | file n|ames th|
|00001e70| 61 6e 20 20 63 6f 6e 74 | 61 69 6e 20 20 61 6e 20 |an cont|ain an |
|00001e80| 20 75 6e 64 65 72 73 63 | 6f 72 65 0d 00 0d 00 0d | undersc|ore.....|
|00001e90| 0a 20 20 20 20 20 20 63 | 68 61 72 61 63 74 65 72 |. c|haracter|
|00001ea0| 2e 0d 00 0d 00 0d 0a 0d | 00 0d 00 0d 0a 0d 00 0d |........|........|
|00001eb0| 00 0d 0a 0d 00 0d 00 0d | 0a 20 20 20 20 20 20 32 |........|. 2|
|00001ec0| 20 20 41 44 56 41 4e 54 | 41 47 45 53 20 4f 46 20 | ADVANT|AGES OF |
|00001ed0| 55 53 49 4e 47 20 41 44 | 41 20 54 4f 20 46 4f 52 |USING AD|A TO FOR|
|00001ee0| 54 52 41 4e 0d 00 0d 00 | 0d 0a 0d 00 0d 00 0d 0a |TRAN....|........|
|00001ef0| 20 20 20 20 20 20 32 2e | 31 20 20 41 64 61 20 49 | 2.|1 Ada I|
|00001f00| 73 20 4d 6f 72 65 20 52 | 65 61 64 61 62 6c 65 0d |s More R|eadable.|
|00001f10| 00 0d 00 0d 0a 0d 00 0d | 00 0d 0a 20 20 20 20 20 |........|... |
|00001f20| 20 20 20 20 20 20 54 68 | 65 20 41 64 61 20 63 6f | Th|e Ada co|
|00001f30| 64 65 20 69 73 20 6d 75 | 63 68 20 6d 6f 72 65 20 |de is mu|ch more |
|00001f40| 72 65 61 64 61 62 6c 65 | 20 64 75 65 20 20 74 6f |readable| due to|
|00001f50| 20 20 6c 6f 6e 67 65 72 | 20 20 76 61 72 69 61 62 | longer| variab|
|00001f60| 6c 65 20 20 61 6e 64 0d | 00 0d 00 0d 0a 20 20 20 |le and.|..... |
|00001f70| 20 20 20 70 72 6f 63 65 | 64 75 72 65 20 20 6e 61 | proce|dure na|
|00001f80| 6d 65 73 2e 20 20 20 49 | 74 20 20 61 6c 73 6f 20 |mes. I|t also |
|00001f90| 61 6c 6c 6f 77 73 20 6e | 65 73 74 69 6e 67 20 6f |allows n|esting o|
|00001fa0| 66 20 70 72 6f 63 65 64 | 75 72 65 20 77 68 69 63 |f proced|ure whic|
|00001fb0| 68 20 46 4f 52 54 52 41 | 4e 0d 00 0d 00 0d 0a 20 |h FORTRA|N...... |
|00001fc0| 20 20 20 20 20 6c 61 63 | 6b 73 2e 0d 00 0d 00 0d | lac|ks......|
|00001fd0| 0a 0d 00 0d 00 0d 0a 0d | 00 0d 00 0d 0a 0d 00 0d |........|........|
|00001fe0| 00 0d 0a 20 20 20 20 20 | 20 32 2e 32 20 20 46 6f |... | 2.2 Fo|
|00001ff0| 72 6d 61 74 74 69 6e 67 | 20 53 69 6d 69 6c 61 72 |rmatting| Similar|
|00002000| 20 4c 69 6e 65 73 0d 00 | 0d 00 0d 0a 0d 00 0d 00 | Lines..|........|
|00002010| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 41 64 61 |.. | Ada|
|00002020| 20 69 73 20 6d 75 63 68 | 20 65 61 73 69 65 72 20 | is much| easier |
|00002030| 74 6f 20 75 73 65 20 74 | 68 61 6e 20 46 4f 52 54 |to use t|han FORT|
|00002040| 52 41 4e 20 77 68 65 6e | 20 79 6f 75 20 61 72 65 |RAN when| you are|
|00002050| 20 70 72 69 6e 74 69 6e | 67 20 20 6f 75 74 0d 00 | printin|g out..|
|00002060| 0d 00 0d 0a 20 20 20 20 | 20 20 73 65 76 65 72 61 |.... | severa|
|00002070| 6c 20 20 6c 69 6e 65 73 | 20 20 77 68 69 63 68 20 |l lines| which |
|00002080| 20 61 72 65 20 76 65 72 | 79 20 73 69 6d 69 6c 61 | are ver|y simila|
|00002090| 72 2c 20 62 75 74 20 73 | 6f 6d 65 20 66 69 65 6c |r, but s|ome fiel|
|000020a0| 64 73 20 69 6e 20 74 68 | 65 20 6f 75 74 70 75 74 |ds in th|e output|
|000020b0| 0d 00 0d 00 0d 0a 20 20 | 20 20 20 20 6d 61 79 20 |...... | may |
|000020c0| 63 68 61 6e 67 65 20 74 | 79 70 65 2c 20 64 65 70 |change t|ype, dep|
|000020d0| 65 6e 64 69 6e 67 20 75 | 70 6f 6e 20 74 68 65 20 |ending u|pon the |
|000020e0| 76 61 6c 75 65 73 20 6f | 66 20 74 68 65 20 20 76 |values o|f the v|
|000020f0| 61 72 69 61 62 6c 65 73 | 20 20 79 6f 75 20 20 61 |ariables| you a|
|00002100| 72 65 0d 00 0d 00 0d 0a | 0c 20 20 20 20 20 20 20 |re......|. |
|00002110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002130| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002140| 20 20 20 20 20 20 20 20 | 20 50 61 67 65 20 34 0d | | Page 4.|
|00002150| 00 0d 00 0d 0a 0d 00 0d | 00 0d 0a 0d 00 0d 00 0d |........|........|
|00002160| 0a 20 20 20 20 20 20 70 | 72 69 6e 74 69 6e 67 20 |. p|rinting |
|00002170| 20 6f 75 74 2e 20 20 46 | 6f 72 20 65 78 61 6d 70 | out. F|or examp|
|00002180| 6c 65 2c 20 69 6e 20 6f | 6e 65 20 72 65 70 6f 72 |le, in o|ne repor|
|00002190| 74 20 61 20 64 61 74 65 | 20 28 73 75 63 68 20 61 |t a date| (such a|
|000021a0| 73 20 22 20 34 2f 31 32 | 2f 38 34 22 29 0d 00 0d |s " 4/12|/84")...|
|000021b0| 00 0d 0a 20 20 20 20 20 | 20 6f 72 20 74 68 65 20 |... | or the |
|000021c0| 73 74 72 69 6e 67 20 22 | 2e 2e 2e 2e 22 20 77 61 |string "|...." wa|
|000021d0| 73 20 74 6f 20 62 65 20 | 70 72 69 6e 74 65 64 20 |s to be |printed |
|000021e0| 69 6e 20 61 20 63 6f 6c | 75 6d 6e 20 64 65 70 65 |in a col|umn depe|
|000021f0| 6e 64 69 6e 67 20 75 70 | 6f 6e 20 73 6f 6d 65 0d |nding up|on some.|
|00002200| 00 0d 00 0d 0a 20 20 20 | 20 20 20 63 6f 6e 64 69 |..... | condi|
|00002210| 74 69 6f 6e 2e 20 20 20 | 49 6e 20 20 74 68 65 20 |tion. |In the |
|00002220| 20 6f 72 69 67 69 6e 61 | 6c 20 20 46 4f 52 54 52 | origina|l FORTR|
|00002230| 41 4e 20 76 65 72 73 69 | 6f 6e 2c 20 6e 6f 74 20 |AN versi|on, not |
|00002240| 6f 6e 6c 79 20 77 61 73 | 20 74 68 65 20 6c 69 6e |only was| the lin|
|00002250| 65 0d 00 0d 00 0d 0a 20 | 20 20 20 20 20 62 75 69 |e...... | bui|
|00002260| 6c 74 20 64 75 72 69 6e | 67 20 74 68 65 20 65 78 |lt durin|g the ex|
|00002270| 65 63 75 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 70 |ecution |of the p|
|00002280| 72 6f 63 65 64 75 72 65 | 2c 20 62 75 74 20 74 68 |rocedure|, but th|
|00002290| 65 20 66 6f 72 6d 61 74 | 20 20 73 74 61 74 65 6d |e format| statem|
|000022a0| 65 6e 74 0d 00 0d 00 0d | 0a 20 20 20 20 20 20 75 |ent.....|. u|
|000022b0| 73 65 64 20 20 74 6f 20 | 20 6f 75 74 70 75 74 20 |sed to | output |
|000022c0| 20 74 68 65 20 6c 69 6e | 65 20 68 61 64 20 74 6f | the lin|e had to|
|000022d0| 20 62 65 20 62 75 69 6c | 74 2e 20 20 54 68 69 73 | be buil|t. This|
|000022e0| 20 72 65 71 75 69 72 65 | 64 20 74 65 73 74 69 6e | require|d testin|
|000022f0| 67 20 74 68 65 0d 00 0d | 00 0d 0a 20 20 20 20 20 |g the...|... |
|00002300| 20 76 61 6c 75 65 2c 20 | 61 6e 64 20 69 66 20 61 | value, |and if a|
|00002310| 20 22 2e 2e 2e 2e 22 20 | 77 61 73 20 74 6f 20 62 | "...." |was to b|
|00002320| 65 20 6f 75 74 70 75 74 | 2c 20 61 20 64 75 6d 6d |e output|, a dumm|
|00002330| 79 20 64 61 74 65 20 77 | 61 73 20 61 73 73 69 67 |y date w|as assig|
|00002340| 6e 65 64 20 20 74 6f 0d | 00 0d 00 0d 0a 20 20 20 |ned to.|..... |
|00002350| 20 20 20 74 68 65 20 20 | 63 6f 72 72 65 73 70 6f | the |correspo|
|00002360| 6e 64 69 6e 67 20 20 66 | 69 65 6c 64 2c 20 20 61 |nding f|ield, a|
|00002370| 6e 64 20 61 20 63 68 61 | 72 61 63 74 65 72 20 73 |nd a cha|racter s|
|00002380| 74 72 69 6e 67 20 77 61 | 73 20 61 70 70 65 6e 64 |tring wa|s append|
|00002390| 65 64 20 74 6f 20 74 68 | 65 0d 00 0d 00 0d 0a 20 |ed to th|e...... |
|000023a0| 20 20 20 20 20 66 6f 72 | 6d 61 74 20 73 74 61 74 | for|mat stat|
|000023b0| 65 6d 65 6e 74 20 73 74 | 72 69 6e 67 20 73 74 61 |ement st|ring sta|
|000023c0| 74 69 6e 67 20 68 6f 77 | 20 20 74 6f 20 20 70 72 |ting how| to pr|
|000023d0| 69 6e 74 20 20 6f 75 74 | 20 20 74 68 65 20 20 76 |int out| the v|
|000023e0| 61 6c 75 65 2e 20 20 20 | 54 68 65 0d 00 0d 00 0d |alue. |The.....|
|000023f0| 0a 20 20 20 20 20 20 65 | 6e 74 69 72 65 20 20 6c |. e|ntire l|
|00002400| 69 6e 65 20 20 77 61 73 | 20 20 74 68 65 6e 20 70 |ine was| then p|
|00002410| 72 69 6e 74 65 64 20 6f | 75 74 20 61 74 20 6f 6e |rinted o|ut at on|
|00002420| 63 65 2e 20 20 49 6e 20 | 41 64 61 20 74 68 65 20 |ce. In |Ada the |
|00002430| 76 61 6c 75 65 73 20 6f | 66 20 74 68 65 0d 00 0d |values o|f the...|
|00002440| 00 0d 0a 20 20 20 20 20 | 20 76 61 72 69 61 62 6c |... | variabl|
|00002450| 65 73 20 63 6f 75 6c 64 | 20 62 65 20 74 65 73 74 |es could| be test|
|00002460| 65 64 20 61 6e 64 20 74 | 68 65 20 20 61 70 70 72 |ed and t|he appr|
|00002470| 6f 70 72 69 61 74 65 20 | 20 6f 75 74 70 75 74 20 |opriate | output |
|00002480| 20 27 50 55 54 27 20 20 | 74 6f 20 20 74 68 65 0d | 'PUT' |to the.|
|00002490| 00 0d 00 0d 0a 20 20 20 | 20 20 20 66 69 6c 65 2e |..... | file.|
|000024a0| 20 20 20 57 68 65 6e 20 | 74 68 65 20 65 6e 74 69 | When |the enti|
|000024b0| 72 65 20 6c 69 6e 65 20 | 77 61 73 20 77 72 69 74 |re line |was writ|
|000024c0| 74 65 6e 2c 20 61 20 73 | 69 6d 70 6c 65 20 4e 45 |ten, a s|imple NE|
|000024d0| 57 5f 4c 49 4e 45 28 66 | 69 6c 65 5f 6e 61 6d 65 |W_LINE(f|ile_name|
|000024e0| 29 0d 00 0d 00 0d 0a 20 | 20 20 20 20 20 65 6e 64 |)...... | end|
|000024f0| 65 64 20 74 68 65 20 6c | 69 6e 65 20 61 6e 64 20 |ed the l|ine and |
|00002500| 74 68 65 20 6e 65 78 74 | 20 6c 69 6e 65 20 77 61 |the next| line wa|
|00002510| 73 20 74 68 65 6e 20 70 | 72 6f 63 65 73 73 65 64 |s then p|rocessed|
|00002520| 2e 0d 00 0d 00 0d 0a 0d | 00 0d 00 0d 0a 0d 00 0d |........|........|
|00002530| 00 0d 0a 0d 00 0d 00 0d | 0a 20 20 20 20 20 20 32 |........|. 2|
|00002540| 2e 33 20 20 43 6f 64 65 | 20 53 69 7a 65 0d 00 0d |.3 Code| Size...|
|00002550| 00 0d 0a 0d 00 0d 00 0d | 0a 20 20 20 20 20 20 20 |........|. |
|00002560| 20 20 20 20 54 68 65 20 | 41 64 61 20 76 65 72 73 | The |Ada vers|
|00002570| 69 6f 6e 20 6f 66 20 54 | 52 41 43 4b 45 52 20 69 |ion of T|RACKER i|
|00002580| 73 20 65 71 75 69 76 61 | 6c 65 6e 74 20 69 6e 20 |s equiva|lent in |
|00002590| 73 69 7a 65 20 74 6f 20 | 20 74 68 65 20 20 46 4f |size to | the FO|
|000025a0| 52 54 52 41 4e 0d 00 0d | 00 0d 0a 20 20 20 20 20 |RTRAN...|... |
|000025b0| 20 76 65 72 73 69 6f 6e | 2e 20 20 54 68 65 20 73 | version|. The s|
|000025c0| 69 7a 65 73 20 6f 66 20 | 74 68 65 20 70 6f 72 74 |izes of |the port|
|000025d0| 69 6f 6e 73 20 6f 66 20 | 54 52 41 43 4b 45 52 20 |ions of |TRACKER |
|000025e0| 77 68 69 63 68 20 61 72 | 65 20 63 6f 6d 70 61 72 |which ar|e compar|
|000025f0| 61 62 6c 65 20 69 73 0d | 00 0d 00 0d 0a 20 20 20 |able is.|..... |
|00002600| 20 20 20 73 68 6f 77 6e | 20 69 6e 20 74 68 65 20 | shown| in the |
|00002610| 66 6f 6c 6c 6f 77 69 6e | 67 20 74 61 62 6c 65 3a |followin|g table:|
|00002620| 0d 00 0d 00 0d 0a 0d 00 | 0d 00 0d 0a 20 20 20 20 |........|.... |
|00002630| 20 20 20 20 20 20 20 20 | 20 20 53 69 7a 65 20 43 | | Size C|
|00002640| 6f 6d 70 61 72 69 73 6f | 6e 20 6f 66 20 45 71 75 |ompariso|n of Equ|
|00002650| 69 76 61 6c 65 6e 74 20 | 50 6f 72 74 69 6f 6e 73 |ivalent |Portions|
|00002660| 20 6f 66 20 54 52 41 43 | 4b 45 52 0d 00 0d 00 0d | of TRAC|KER.....|
|00002670| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002680| 20 20 20 6d 65 61 73 75 | 72 65 64 20 69 6e 20 53 | measu|red in S|
|00002690| 4c 4f 43 27 73 20 28 53 | 6f 75 72 63 65 20 4c 69 |LOC's (S|ource Li|
|000026a0| 6e 65 73 20 4f 66 20 43 | 6f 64 65 29 0d 00 0d 00 |nes Of C|ode)....|
|000026b0| 0d 0a 20 20 20 20 20 20 | 20 0d 00 0d 00 0d 0a 20 |.. | ...... |
|000026c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000026d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 46 | | F|
|000026e0| 4f 52 54 52 41 4e 20 20 | 20 20 41 64 61 20 20 20 |ORTRAN | Ada |
|000026f0| 20 44 69 66 66 65 72 65 | 6e 63 65 0d 00 0d 00 0d | Differe|nce.....|
|00002700| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002720| 20 2d 2d 2d 2d 2d 2d 2d | 20 20 20 20 2d 2d 2d 2d | -------| ----|
|00002730| 20 20 20 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0d 00 0d | -----|-----...|
|00002740| 00 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |... | |
|00002750| 20 20 20 20 20 20 20 20 | 20 49 4e 50 52 45 50 20 | | INPREP |
|00002760| 20 20 20 20 34 34 32 38 | 20 20 20 20 20 20 34 31 | 4428| 41|
|00002770| 38 32 20 20 20 32 34 36 | 20 64 65 63 72 65 61 73 |82 246| decreas|
|00002780| 65 0d 00 0d 00 0d 0a 20 | 20 20 20 20 20 20 20 20 |e...... | |
|00002790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 54 52 41 | | TRA|
|000027a0| 43 4b 45 52 20 20 20 20 | 32 31 32 35 20 20 20 20 |CKER |2125 |
|000027b0| 20 20 32 32 37 34 20 20 | 20 31 34 39 20 69 6e 63 | 2274 | 149 inc|
|000027c0| 72 65 61 73 65 0d 00 0d | 00 0d 0a 20 20 20 20 20 |rease...|... |
|000027d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000027e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000027f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2d 2d 2d | | ---|
|00002800| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0d 00 0d 00 0d 0a 20 |--------|-...... |
|00002810| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002840| 20 20 39 37 20 64 65 63 | 72 65 61 73 65 0d 00 0d | 97 dec|rease...|
|00002850| 00 0d 0a 0d 00 0d 00 0d | 0a 0d 00 0d 00 0d 0a 20 |........|....... |
|00002860| 20 20 20 20 20 20 20 20 | 20 20 54 68 65 72 65 20 | | There |
|00002870| 61 72 65 20 73 65 76 65 | 72 61 6c 20 72 65 61 73 |are seve|ral reas|
|00002880| 6f 6e 73 20 77 68 79 20 | 74 68 65 20 41 64 61 20 |ons why |the Ada |
|00002890| 63 6f 64 65 20 69 73 20 | 61 62 6f 75 74 20 74 68 |code is |about th|
|000028a0| 65 20 73 61 6d 65 20 73 | 69 7a 65 0d 00 0d 00 0d |e same s|ize.....|
|000028b0| 0a 20 20 20 20 20 20 61 | 73 20 74 68 65 20 6f 72 |. a|s the or|
|000028c0| 69 67 69 6e 61 6c 20 46 | 4f 52 54 52 41 4e 20 76 |iginal F|ORTRAN v|
|000028d0| 65 72 73 69 6f 6e 2e 20 | 20 54 68 65 73 65 20 61 |ersion. | These a|
|000028e0| 72 65 20 61 73 20 66 6f | 6c 6c 6f 77 73 3a 0d 00 |re as fo|llows:..|
|000028f0| 0d 00 0d 0a 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 |........|.. |
|00002900| 31 2e 20 20 54 68 65 20 | 41 64 61 20 76 65 72 73 |1. The |Ada vers|
|00002910| 69 6f 6e 20 68 61 73 20 | 61 64 64 65 64 20 73 65 |ion has |added se|
|00002920| 76 65 72 61 6c 20 66 65 | 61 74 75 72 65 73 20 77 |veral fe|atures w|
|00002930| 68 69 63 68 20 77 65 72 | 65 20 6e 6f 74 20 69 6e |hich wer|e not in|
|00002940| 63 6c 75 64 65 64 0d 00 | 0d 00 0d 0a 20 20 20 20 |cluded..|.... |
|00002950| 20 20 20 20 20 20 69 6e | 20 20 74 68 65 20 20 6f | in| the o|
|00002960| 72 69 67 69 6e 61 6c 20 | 20 46 4f 52 54 52 41 4e |riginal | FORTRAN|
|00002970| 20 20 76 65 72 73 69 6f | 6e 2e 20 20 46 6f 72 20 | versio|n. For |
|00002980| 69 6e 73 74 61 6e 63 65 | 2c 20 69 66 20 61 20 63 |instance|, if a c|
|00002990| 68 61 6e 67 65 20 69 73 | 0d 00 0d 00 0d 0a 20 20 |hange is|...... |
|000029a0| 20 20 20 20 20 20 20 20 | 6d 61 64 65 20 74 6f 20 | |made to |
|000029b0| 74 68 65 20 6b 65 79 20 | 69 6e 20 65 69 74 68 65 |the key |in eithe|
|000029c0| 72 20 74 68 65 20 73 75 | 62 73 79 73 74 65 6d 2c |r the su|bsystem,|
|000029d0| 20 6d 69 6c 65 73 74 6f | 6e 65 2c 20 20 6f 72 20 | milesto|ne, or |
|000029e0| 20 70 65 72 73 6f 6e 6e | 65 6c 0d 00 0d 00 0d 0a | personn|el......|
|000029f0| 20 20 20 20 20 20 20 20 | 20 20 64 61 74 61 2c 20 | | data, |
|00002a00| 20 69 74 20 20 69 73 20 | 61 75 74 6f 6d 61 74 69 | it is |automati|
|00002a10| 63 61 6c 6c 79 20 72 65 | 66 6c 65 63 74 65 64 20 |cally re|flected |
|00002a20| 69 6e 20 74 68 65 20 65 | 6c 65 6d 65 6e 74 20 64 |in the e|lement d|
|00002a30| 61 74 61 2e 20 20 42 65 | 66 6f 72 65 0d 00 0d 00 |ata. Be|fore....|
|00002a40| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 74 68 65 20 |.. | the |
|00002a50| 75 73 65 72 20 68 61 64 | 20 74 6f 20 6d 6f 64 69 |user had| to modi|
|00002a60| 66 79 20 65 61 63 68 20 | 65 6c 65 6d 65 6e 74 20 |fy each |element |
|00002a70| 61 6e 64 20 74 68 65 6e | 20 6d 6f 64 69 66 79 20 |and then| modify |
|00002a80| 74 68 65 20 20 70 61 72 | 61 6d 65 74 65 72 0d 00 |the par|ameter..|
|00002a90| 0d 00 0d 0a 20 20 20 20 | 20 20 20 20 20 20 64 61 |.... | da|
|00002aa0| 74 61 2e 0d 00 0d 00 0d | 0a 0d 00 0d 00 0d 0a 20 |ta......|....... |
|00002ab0| 20 20 20 20 20 32 2e 20 | 20 4d 6f 73 74 20 70 72 | 2. | Most pr|
|00002ac0| 6f 6d 70 74 73 20 6e 6f | 77 20 68 61 76 65 20 61 |ompts no|w have a|
|00002ad0| 20 48 45 4c 50 20 6f 70 | 74 69 6f 6e 2c 20 6f 62 | HELP op|tion, ob|
|00002ae0| 74 61 69 6e 65 64 20 62 | 79 20 65 6e 74 65 72 69 |tained b|y enteri|
|00002af0| 6e 67 20 20 61 20 20 27 | 3f 27 2e 0d 00 0d 00 0d |ng a '|?'......|
|00002b00| 0a 20 20 20 20 20 20 20 | 20 20 20 53 69 6e 63 65 |. | Since|
|00002b10| 20 73 6f 6d 65 20 6f 66 | 20 74 68 65 20 48 45 4c | some of| the HEL|
|00002b20| 50 20 73 65 63 74 69 6f | 6e 73 20 61 72 65 20 66 |P sectio|ns are f|
|00002b30| 61 69 72 6c 79 20 6c 65 | 6e 67 74 68 79 2c 20 74 |airly le|ngthy, t|
|00002b40| 68 69 73 20 69 6e 63 72 | 65 61 73 65 64 0d 00 0d |his incr|eased...|
|00002b50| 00 0d 0a 20 20 20 20 20 | 20 20 20 20 20 74 68 65 |... | the|
|00002b60| 20 53 4c 4f 43 20 63 6f | 75 6e 74 20 63 6f 6e 73 | SLOC co|unt cons|
|00002b70| 69 64 65 72 61 62 6c 65 | 20 69 6e 20 74 68 65 20 |iderable| in the |
|00002b80| 70 72 6f 6d 70 74 69 6e | 67 20 70 6f 72 74 69 6f |promptin|g portio|
|00002b90| 6e 2e 0d 00 0d 00 0d 0a | 0d 00 0d 00 0d 0a 20 20 |n.......|...... |
|00002ba0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 41 73 20 | | As |
|00002bb0| 61 6e 20 65 64 75 63 61 | 74 65 64 20 67 75 65 73 |an educa|ted gues|
|00002bc0| 73 2c 20 69 66 20 74 68 | 65 20 66 75 6e 63 74 69 |s, if th|e functi|
|00002bd0| 6f 6e 61 6c 6c 69 74 79 | 20 6f 66 20 62 6f 74 68 |onallity| of both|
|00002be0| 20 20 76 65 72 73 69 6f | 6e 73 0d 00 0d 00 0d 0a | versio|ns......|
|00002bf0| 20 20 20 20 20 20 20 20 | 20 20 6f 66 20 20 49 4e | | of IN|
|00002c00| 50 52 45 50 20 20 77 65 | 72 65 20 20 69 64 65 6e |PREP we|re iden|
|00002c10| 74 69 63 61 6c 2c 20 20 | 74 68 65 20 41 64 61 20 |tical, |the Ada |
|00002c20| 76 65 72 73 69 6f 6e 20 | 77 6f 75 6c 64 20 68 61 |version |would ha|
|00002c30| 76 65 20 31 35 25 20 66 | 65 77 65 72 0d 00 0d 00 |ve 15% f|ewer....|
|00002c40| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 6c 69 6e 65 |.. | line|
|00002c50| 73 20 6f 66 20 63 6f 64 | 65 20 20 74 68 61 6e 20 |s of cod|e than |
|00002c60| 20 74 68 65 20 20 46 4f | 52 54 52 41 4e 20 20 76 | the FO|RTRAN v|
|00002c70| 65 72 73 69 6f 6e 2e 20 | 20 20 53 69 6e 63 65 20 |ersion. | Since |
|00002c80| 20 74 68 65 72 65 20 20 | 69 73 20 20 6e 6f 0d 00 | there |is no..|
|00002c90| 0d 00 0d 0a 20 20 20 20 | 20 20 20 20 20 20 64 69 |.... | di|
|00002ca0| 66 66 65 72 65 6e 63 65 | 20 20 69 6e 20 20 66 75 |fference| in fu|
|00002cb0| 6e 63 74 69 6f 6e 61 6c | 6c 69 74 79 20 62 65 74 |nctional|lity bet|
|00002cc0| 77 65 65 6e 20 74 68 65 | 20 74 77 6f 20 76 65 72 |ween the| two ver|
|00002cd0| 73 69 6f 6e 20 6f 66 20 | 54 52 41 43 4b 45 52 2c |sion of |TRACKER,|
|00002ce0| 0d 00 0d 00 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|00002cf0| 74 68 65 20 41 64 61 20 | 6c 69 6e 65 73 20 6f 66 |the Ada |lines of|
|00002d00| 20 63 6f 64 65 20 77 6f | 75 6c 64 20 72 65 6d 61 | code wo|uld rema|
|00002d10| 69 6e 20 20 61 74 20 20 | 61 20 20 37 25 20 20 69 |in at |a 7% i|
|00002d20| 6e 63 72 65 61 73 65 20 | 20 6f 76 65 72 20 20 74 |ncrease | over t|
|00002d30| 68 65 0d 00 0d 00 0d 0a | 20 20 20 20 20 20 20 20 |he......| |
|00002d40| 20 20 46 4f 52 54 52 41 | 4e 2e 20 20 20 54 68 69 | FORTRA|N. Thi|
|00002d50| 73 20 20 77 6f 75 6c 64 | 20 20 67 69 76 65 20 74 |s would| give t|
|00002d60| 68 65 20 41 64 61 20 76 | 65 72 73 69 6f 6e 20 6f |he Ada v|ersion o|
|00002d70| 66 20 74 68 65 20 49 4e | 50 52 45 50 2f 54 52 41 |f the IN|PREP/TRA|
|00002d80| 43 4b 45 52 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 |CKER....|.. |
|00002d90| 20 20 20 20 70 72 6f 67 | 72 61 6d 20 38 25 20 66 | prog|ram 8% f|
|00002da0| 65 77 65 72 20 6c 69 6e | 65 73 20 6f 66 20 63 6f |ewer lin|es of co|
|00002db0| 64 65 2e 0d 00 0d 00 0d | 0a 0c 20 20 20 20 20 20 |de......|.. |
|00002dc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002dd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002de0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002df0| 20 20 20 20 20 20 20 20 | 20 20 50 61 67 65 20 35 | | Page 5|
|00002e00| 0d 00 0d 00 0d 0a 0d 00 | 0d 00 0d 0a 0d 00 0d 00 |........|........|
|00002e10| 0d 0a 20 20 20 20 20 20 | 33 2e 20 20 57 68 65 6e |.. |3. When|
|00002e20| 20 77 72 69 74 69 6e 67 | 20 20 6f 75 74 20 20 73 | writing| out s|
|00002e30| 65 76 65 72 61 6c 20 20 | 64 69 66 66 65 72 65 6e |everal |differen|
|00002e40| 74 20 20 76 61 72 69 61 | 62 6c 65 20 20 6f 6e 20 |t varia|ble on |
|00002e50| 20 6f 6e 65 20 20 6c 69 | 6e 65 20 20 69 6e 0d 00 | one li|ne in..|
|00002e60| 0d 00 0d 0a 20 20 20 20 | 20 20 20 20 20 20 46 4f |.... | FO|
|00002e70| 52 54 52 41 4e 2c 20 20 | 6f 6e 6c 79 20 20 32 20 |RTRAN, |only 2 |
|00002e80| 20 73 74 61 74 65 6d 65 | 6e 74 73 20 20 61 72 65 | stateme|nts are|
|00002e90| 20 20 6e 65 65 64 65 64 | 2c 20 20 74 68 65 20 20 | needed|, the |
|00002ea0| 22 57 52 49 54 45 22 20 | 20 61 6e 64 20 74 68 65 |"WRITE" | and the|
|00002eb0| 0d 00 0d 00 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|00002ec0| 22 46 4f 52 4d 41 54 22 | 2e 20 20 49 6e 20 41 64 |"FORMAT"|. In Ad|
|00002ed0| 61 2c 20 65 61 63 68 20 | 76 61 72 69 61 62 6c 65 |a, each |variable|
|00002ee0| 20 20 6d 75 73 74 20 20 | 62 65 20 20 22 50 55 54 | must |be "PUT|
|00002ef0| 22 20 20 69 6e 20 20 61 | 20 20 73 65 70 61 72 61 |" in a| separa|
|00002f00| 74 65 0d 00 0d 00 0d 0a | 20 20 20 20 20 20 20 20 |te......| |
|00002f10| 20 20 73 74 61 74 65 6d | 65 6e 74 20 20 61 6e 64 | statem|ent and|
|00002f20| 20 61 20 22 53 45 54 43 | 4f 4c 22 20 63 6f 6d 6d | a "SETC|OL" comm|
|00002f30| 61 6e 64 20 6d 75 73 74 | 20 70 72 65 63 65 64 65 |and must| precede|
|00002f40| 20 65 61 63 68 20 22 50 | 55 54 22 20 69 6e 20 6f | each "P|UT" in o|
|00002f50| 72 64 65 72 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 |rder....|.. |
|00002f60| 20 20 20 20 74 6f 20 73 | 70 61 63 65 20 74 68 65 | to s|pace the|
|00002f70| 20 6c 69 6e 65 20 70 72 | 6f 70 65 72 6c 79 2e 20 | line pr|operly. |
|00002f80| 20 49 66 20 79 6f 75 20 | 20 77 65 72 65 20 20 74 | If you | were t|
|00002f90| 6f 20 20 63 72 65 61 74 | 65 20 20 63 6f 64 65 20 |o creat|e code |
|00002fa0| 20 77 68 69 63 68 0d 00 | 0d 00 0d 0a 20 20 20 20 | which..|.... |
|00002fb0| 20 20 20 20 20 20 77 6f | 75 6c 64 20 20 77 72 69 | wo|uld wri|
|00002fc0| 74 65 20 20 74 65 6e 20 | 20 64 69 66 66 65 72 65 |te ten | differe|
|00002fd0| 6e 74 20 20 76 61 72 69 | 61 62 6c 65 73 20 20 69 |nt vari|ables i|
|00002fe0| 6e 20 20 73 65 70 61 72 | 61 74 65 20 63 6f 6c 75 |n separ|ate colu|
|00002ff0| 6d 6e 73 2c 20 74 68 65 | 0d 00 0d 00 0d 0a 20 20 |mns, the|...... |
|00003000| 20 20 20 20 20 20 20 20 | 46 4f 52 54 52 41 4e 20 | |FORTRAN |
|00003010| 76 65 72 73 69 6f 6e 20 | 77 6f 75 6c 64 20 63 6f |version |would co|
|00003020| 6e 73 69 73 74 73 20 6f | 66 20 32 20 6c 69 6e 65 |nsists o|f 2 line|
|00003030| 73 20 28 31 20 66 6f 72 | 20 74 68 65 20 22 57 52 |s (1 for| the "WR|
|00003040| 49 54 45 22 20 61 6e 64 | 20 31 0d 00 0d 00 0d 0a |ITE" and| 1......|
|00003050| 20 20 20 20 20 20 20 20 | 20 20 66 6f 72 20 20 74 | | for t|
|00003060| 68 65 20 20 22 46 4f 52 | 4d 41 54 22 20 20 73 74 |he "FOR|MAT" st|
|00003070| 61 74 65 6d 65 6e 74 29 | 20 77 68 69 6c 65 20 74 |atement)| while t|
|00003080| 68 65 20 41 64 61 20 76 | 65 72 73 69 6f 6e 20 77 |he Ada v|ersion w|
|00003090| 6f 75 6c 64 20 74 61 6b | 65 20 32 31 0d 00 0d 00 |ould tak|e 21....|
|000030a0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 6c 69 6e 65 |.. | line|
|000030b0| 73 20 28 61 20 22 53 45 | 54 43 4f 4c 22 20 61 6e |s (a "SE|TCOL" an|
|000030c0| 64 20 61 20 22 50 55 54 | 22 20 66 6f 72 20 65 61 |d a "PUT|" for ea|
|000030d0| 63 68 20 20 6f 66 20 20 | 31 30 20 20 76 61 72 69 |ch of |10 vari|
|000030e0| 61 62 6c 65 73 20 20 70 | 6c 75 73 20 20 61 0d 00 |ables p|lus a..|
|000030f0| 0d 00 0d 0a 20 20 20 20 | 20 20 20 20 20 20 22 4e |.... | "N|
|00003100| 45 57 4c 49 4e 45 22 29 | 2e 0d 00 0d 00 0d 0a 0d |EWLINE")|........|
|00003110| 00 0d 00 0d 0a 20 20 20 | 20 20 20 34 2e 20 20 0d |..... | 4. .|
|00003120| 00 0d 00 0d 0a 0d 00 0d | 00 0d 0a 0d 00 0d 00 0d |........|........|
|00003130| 0a 0d 00 0d 00 0d 0a 0d | 00 0d 00 0d 0a 20 20 20 |........|..... |
|00003140| 20 20 20 32 2e 34 20 20 | 41 64 61 20 49 73 20 46 | 2.4 |Ada Is F|
|00003150| 61 73 74 65 72 20 54 6f | 20 57 72 69 74 65 0d 00 |aster To| Write..|
|00003160| 0d 00 0d 0a 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 |........|.. |
|00003170| 20 20 20 20 20 45 76 65 | 6e 20 74 68 6f 75 67 68 | Eve|n though|
|00003180| 20 74 68 65 20 49 4e 50 | 52 45 50 2f 54 52 41 43 | the INP|REP/TRAC|
|00003190| 4b 45 52 20 70 6f 72 74 | 69 6f 6e 20 6f 66 20 20 |KER port|ion of |
|000031a0| 74 68 65 20 20 70 72 6f | 6a 65 63 74 20 20 77 61 |the pro|ject wa|
|000031b0| 73 20 20 34 30 25 0d 00 | 0d 00 0d 0a 20 20 20 20 |s 40%..|.... |
|000031c0| 20 20 62 69 67 67 65 72 | 20 20 74 68 61 74 20 20 | bigger| that |
|000031d0| 74 68 65 20 20 70 72 6f | 70 6f 73 65 64 20 65 73 |the pro|posed es|
|000031e0| 74 69 6d 61 74 65 2c 20 | 77 65 20 73 74 69 6c 6c |timate, |we still|
|000031f0| 20 77 65 72 65 20 61 62 | 6c 65 20 74 6f 20 66 69 | were ab|le to fi|
|00003200| 6e 69 73 68 20 74 68 65 | 0d 00 0d 00 0d 0a 20 20 |nish the|...... |
|00003210| 20 20 20 20 70 72 6f 6a | 65 63 74 20 61 73 20 73 | proj|ect as s|
|00003220| 63 68 65 64 75 6c 65 64 | 20 61 6e 64 20 77 69 74 |cheduled| and wit|
|00003230| 68 69 6e 20 62 75 64 67 | 65 74 2e 0d 00 0d 00 0d |hin budg|et......|
|00003240| 0a 0d 00 0d 00 0d 0a 0d | 00 0d 00 0d 0a 0d 00 0d |........|........|
|00003250| 00 0d 0a 20 20 20 20 20 | 20 33 20 20 41 44 41 20 |... | 3 ADA |
|00003260| 53 54 59 4c 45 20 54 49 | 50 53 0d 00 0d 00 0d 0a |STYLE TI|PS......|
|00003270| 0d 00 0d 00 0d 0a 20 20 | 20 20 20 20 33 2e 31 20 |...... | 3.1 |
|00003280| 20 4e 75 6d 62 65 72 20 | 4f 66 20 53 74 61 74 65 | Number |Of State|
|00003290| 6d 65 6e 74 73 20 50 65 | 72 20 4c 69 6e 65 0d 00 |ments Pe|r Line..|
|000032a0| 0d 00 0d 0a 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 |........|.. |
|000032b0| 20 20 20 20 20 49 6e 20 | 67 65 6e 65 72 61 6c 2c | In |general,|
|000032c0| 20 6f 6e 6c 79 20 6f 6e | 65 20 73 74 61 74 65 6d | only on|e statem|
|000032d0| 65 6e 74 20 73 68 6f 75 | 6c 64 20 62 65 20 6f 6e |ent shou|ld be on|
|000032e0| 20 65 61 63 68 20 6c 69 | 6e 65 2e 20 20 54 68 65 | each li|ne. The|
|000032f0| 20 20 6f 6e 6c 79 0d 00 | 0d 00 0d 0a 20 20 20 20 | only..|.... |
|00003300| 20 20 70 6f 73 73 69 62 | 6c 65 20 20 65 78 63 65 | possib|le exce|
|00003310| 70 74 69 6f 6e 20 20 74 | 6f 20 20 74 68 69 73 20 |ption t|o this |
|00003320| 20 72 75 6c 65 20 63 6f | 6d 65 73 20 77 68 65 6e | rule co|mes when|
|00003330| 20 79 6f 75 20 61 72 65 | 20 72 65 61 64 69 6e 67 | you are| reading|
|00003340| 20 66 72 6f 6d 20 6f 72 | 0d 00 0d 00 0d 0a 20 20 | from or|...... |
|00003350| 20 20 20 20 77 72 69 74 | 69 6e 67 20 74 6f 20 61 | writ|ing to a|
|00003360| 20 66 69 6c 65 2c 20 69 | 6e 20 77 68 69 63 68 20 | file, i|n which |
|00003370| 63 61 73 65 20 61 20 6d | 61 78 69 6d 75 6d 20 6f |case a m|aximum o|
|00003380| 66 20 32 20 73 74 61 74 | 65 6d 65 6e 74 73 20 70 |f 2 stat|ements p|
|00003390| 65 72 20 6c 69 6e 65 20 | 69 73 0d 00 0d 00 0d 0a |er line |is......|
|000033a0| 20 20 20 20 20 20 61 6c | 6c 6f 77 65 64 2e 20 20 | al|lowed. |
|000033b0| 54 77 6f 20 73 74 61 74 | 65 6d 65 6e 74 73 20 6f |Two stat|ements o|
|000033c0| 6e 20 6f 6e 65 20 6c 69 | 6e 65 20 69 73 20 61 6c |n one li|ne is al|
|000033d0| 6c 6f 77 65 64 20 69 66 | 20 74 68 65 20 66 69 72 |lowed if| the fir|
|000033e0| 73 74 20 73 74 61 74 65 | 6d 65 6e 74 0d 00 0d 00 |st state|ment....|
|000033f0| 0d 0a 20 20 20 20 20 20 | 69 73 20 61 20 53 45 54 |.. |is a SET|
|00003400| 5f 43 4f 4c 20 6f 72 20 | 69 66 20 20 74 68 65 20 |_COL or |if the |
|00003410| 20 73 65 63 6f 6e 64 20 | 20 73 74 61 74 65 6d 65 | second | stateme|
|00003420| 6e 74 20 20 69 73 20 20 | 61 20 20 4e 45 57 5f 4c |nt is |a NEW_L|
|00003430| 49 4e 45 2f 53 4b 49 50 | 5f 4c 49 4e 45 2e 0d 00 |INE/SKIP|_LINE...|
|00003440| 0d 00 0d 0a 20 20 20 20 | 20 20 55 6e 64 65 72 20 |.... | Under |
|00003450| 20 6e 6f 20 20 63 6f 6e | 64 69 74 69 6f 6e 20 20 | no con|dition |
|00003460| 73 68 6f 75 6c 64 20 20 | 74 77 6f 20 73 74 61 74 |should |two stat|
|00003470| 65 6d 65 6e 74 73 20 62 | 65 20 77 72 69 74 74 65 |ements b|e writte|
|00003480| 6e 20 6f 6e 20 6f 6e 65 | 20 6c 69 6e 65 20 69 66 |n on one| line if|
|00003490| 0d 00 0d 00 0d 0a 20 20 | 20 20 20 20 74 68 65 79 |...... | they|
|000034a0| 20 64 6f 20 6e 6f 74 20 | 66 69 74 2e 20 20 41 6c | do not |fit. Al|
|000034b0| 73 6f 2c 20 69 66 20 61 | 20 73 65 76 65 72 61 6c |so, if a| several|
|000034c0| 20 73 74 61 74 65 6d 65 | 6e 74 73 20 69 6e 20 61 | stateme|nts in a|
|000034d0| 20 20 72 6f 77 20 20 69 | 6e 63 6c 75 64 65 73 20 | row i|ncludes |
|000034e0| 20 61 0d 00 0d 00 0d 0a | 20 20 20 20 20 20 53 45 | a......| SE|
|000034f0| 54 5f 43 4f 4c 20 20 61 | 6e 64 20 20 61 20 20 50 |T_COL a|nd a P|
|00003500| 55 54 2f 47 45 54 2c 20 | 74 68 65 6e 20 61 6e 20 |UT/GET, |then an |
|00003510| 61 74 74 65 6d 70 74 20 | 73 68 61 6c 6c 20 62 65 |attempt |shall be|
|00003520| 20 6d 61 64 65 20 74 6f | 20 6c 69 6e 65 20 75 70 | made to| line up|
|00003530| 20 74 68 65 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 | the....|.. |
|00003540| 50 55 54 2f 47 45 54 20 | 76 65 72 74 69 63 61 6c |PUT/GET |vertical|
|00003550| 6c 79 20 62 79 20 69 6e | 73 65 72 74 69 6e 67 20 |ly by in|serting |
|00003560| 65 78 74 72 61 20 73 70 | 61 63 65 73 20 69 6e 20 |extra sp|aces in |
|00003570| 74 68 65 20 6c 69 6e 65 | 73 2e 20 20 53 6f 6d 65 |the line|s. Some|
|00003580| 20 6f 74 68 65 72 0d 00 | 0d 00 0d 0a 20 20 20 20 | other..|.... |
|00003590| 20 20 63 61 73 65 73 20 | 77 68 65 6e 20 75 73 69 | cases |when usi|
|000035a0| 6e 67 20 54 45 58 54 5f | 49 4f 20 6d 61 79 20 62 |ng TEXT_|IO may b|
|000035b0| 65 20 6a 75 73 74 69 66 | 69 65 64 20 61 6c 73 6f |e justif|ied also|
|000035c0| 2e 0d 00 0d 00 0d 0a 0d | 00 0d 00 0d 0a 0d 00 0d |........|........|
|000035d0| 00 0d 0a 0d 00 0d 00 0d | 0a 20 20 20 20 20 20 33 |........|. 3|
|000035e0| 2e 32 20 20 42 6f 64 69 | 65 73 20 4f 66 20 4d 61 |.2 Bodi|es Of Ma|
|000035f0| 6a 6f 72 20 50 72 6f 63 | 65 64 75 72 65 73 0d 00 |jor Proc|edures..|
|00003600| 0d 00 0d 0a 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 |........|.. |
|00003610| 20 20 20 20 20 54 68 65 | 20 62 6f 64 79 20 6f 66 | The| body of|
|00003620| 20 61 6e 79 20 70 72 6f | 63 65 64 75 72 65 20 74 | any pro|cedure t|
|00003630| 68 61 74 20 68 61 73 20 | 61 6e 20 65 78 74 72 65 |hat has |an extre|
|00003640| 6d 65 6c 79 20 6c 61 72 | 67 65 20 20 6e 75 6d 62 |mely lar|ge numb|
|00003650| 65 72 20 20 6f 66 0d 00 | 0d 00 0d 0a 20 20 20 20 |er of..|.... |
|00003660| 20 20 72 6f 75 74 69 6e | 65 73 20 20 6e 65 73 74 | routin|es nest|
|00003670| 65 64 20 20 69 6e 20 20 | 69 74 20 20 6f 72 20 20 |ed in |it or |
|00003680| 73 65 70 61 72 61 74 65 | 20 20 66 72 6f 6d 20 69 |separate| from i|
|00003690| 74 20 73 68 6f 75 6c 64 | 20 62 65 20 61 73 20 73 |t should| be as s|
|000036a0| 69 6d 70 6c 65 20 61 73 | 0d 00 0d 00 0d 0a 20 20 |imple as|...... |
|000036b0| 20 20 20 20 70 6f 73 73 | 69 62 6c 65 2e 20 20 54 | poss|ible. T|
|000036c0| 68 69 73 20 69 73 20 74 | 6f 20 61 76 6f 69 64 20 |his is t|o avoid |
|000036d0| 20 75 6e 6e 65 63 65 73 | 73 61 72 79 20 20 72 65 | unneces|sary re|
|000036e0| 63 6f 6d 70 69 6c 61 74 | 69 6f 6e 20 20 6f 66 20 |compilat|ion of |
|000036f0| 20 74 68 65 20 20 62 6f | 64 79 0d 00 0d 00 0d 0a | the bo|dy......|
|00003700| 20 20 20 20 20 20 77 68 | 69 63 68 20 69 6e 20 74 | wh|ich in t|
|00003710| 75 72 6e 20 72 65 71 75 | 69 72 65 73 20 61 6c 6c |urn requ|ires all|
|00003720| 20 6f 66 20 69 74 73 20 | 63 68 69 6c 64 72 65 6e | of its |children|
|00003730| 20 74 6f 20 62 65 20 72 | 65 63 6f 6d 70 69 6c 65 | to be r|ecompile|
|00003740| 64 2e 20 20 54 68 65 20 | 62 6f 64 79 0d 00 0d 00 |d. The |body....|
|00003750| 0d 0a 20 20 20 20 20 20 | 73 68 6f 75 6c 64 20 63 |.. |should c|
|00003760| 6f 6e 74 61 69 6e 20 20 | 6f 6e 6c 79 20 20 70 72 |ontain |only pr|
|00003770| 6f 63 65 64 75 72 65 20 | 20 63 61 6c 6c 73 20 20 |ocedure | calls |
|00003780| 61 6e 64 20 20 65 78 63 | 65 70 74 69 6f 6e 20 20 |and exc|eption |
|00003790| 68 61 6e 64 6c 69 6e 67 | 2e 20 20 20 49 66 0d 00 |handling|. If..|
|000037a0| 0d 00 0d 0a 20 20 20 20 | 20 20 61 6e 79 74 68 69 |.... | anythi|
|000037b0| 6e 67 20 20 6d 6f 72 65 | 20 20 63 6f 6d 70 6c 69 |ng more| compli|
|000037c0| 63 61 74 65 64 20 20 69 | 73 20 20 72 65 71 75 69 |cated i|s requi|
|000037d0| 72 65 64 2c 20 61 6e 6f | 74 68 65 72 20 70 72 6f |red, ano|ther pro|
|000037e0| 63 65 64 75 72 65 20 73 | 68 6f 75 6c 64 20 62 65 |cedure s|hould be|
|000037f0| 0d 00 0d 00 0d 0a 20 20 | 20 20 20 20 77 72 69 74 |...... | writ|
|00003800| 74 65 6e 2c 20 73 65 70 | 61 72 61 74 65 20 66 72 |ten, sep|arate fr|
|00003810| 6f 6d 20 74 68 65 20 70 | 61 72 65 6e 74 2c 20 77 |om the p|arent, w|
|00003820| 68 69 63 68 20 6f 6e 6c | 79 20 63 6f 6e 74 61 69 |hich onl|y contai|
|00003830| 6e 73 20 74 68 65 20 63 | 6f 6d 70 6c 69 63 61 74 |ns the c|omplicat|
|00003840| 65 64 0d 00 0d 00 0d 0a | 20 20 20 20 20 20 62 6f |ed......| bo|
|00003850| 64 79 20 20 6f 66 20 20 | 74 68 65 20 20 70 61 72 |dy of |the par|
|00003860| 65 6e 74 20 20 70 72 6f | 63 65 64 75 72 65 2e 20 |ent pro|cedure. |
|00003870| 20 20 49 6e 20 20 74 68 | 69 73 20 20 6d 61 6e 6e | In th|is mann|
|00003880| 65 72 2c 20 20 74 68 65 | 20 62 6f 64 79 20 63 61 |er, the| body ca|
|00003890| 6e 20 62 65 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 |n be....|.. |
|000038a0| 6d 6f 64 69 66 69 65 64 | 20 20 77 69 74 68 6f 75 |modified| withou|
|000038b0| 74 20 20 72 65 71 75 69 | 72 69 6e 67 20 20 75 6e |t requi|ring un|
|000038c0| 6e 65 63 65 73 73 61 72 | 79 20 20 72 65 63 6f 6d |necessar|y recom|
|000038d0| 70 69 6c 61 74 69 6f 6e | 73 20 20 20 6f 66 20 20 |pilation|s of |
|000038e0| 20 6f 74 68 65 72 0d 00 | 0d 00 0d 0a 20 20 20 20 | other..|.... |
|000038f0| 20 20 70 72 6f 63 65 64 | 75 72 65 73 2e 0d 00 0d | proced|ures....|
|00003900| 00 0d 0a 0c 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|00003910| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003920| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003930| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003940| 20 20 20 20 50 61 67 65 | 20 36 0d 00 0d 00 0d 0a | Page| 6......|
|00003950| 0d 00 0d 00 0d 0a 0d 00 | 0d 00 0d 0a 20 20 20 20 |........|.... |
|00003960| 20 20 33 2e 33 20 20 4c | 6f 63 61 74 69 6f 6e 20 | 3.3 L|ocation |
|00003970| 4f 66 20 41 20 50 72 6f | 63 65 64 75 72 65 27 73 |Of A Pro|cedure's|
|00003980| 20 50 72 6f 6c 6f 67 75 | 65 0d 00 0d 00 0d 0a 0d | Prologu|e.......|
|00003990| 00 0d 00 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |..... | |
|000039a0| 57 68 65 6e 20 61 20 70 | 72 6f 63 65 64 75 72 65 |When a p|rocedure|
|000039b0| 27 73 20 62 6f 64 79 20 | 69 73 20 73 65 70 61 72 |'s body |is separ|
|000039c0| 61 74 65 20 66 72 6f 6d | 20 69 74 73 20 73 70 65 |ate from| its spe|
|000039d0| 63 2c 20 20 74 68 65 20 | 20 70 72 6f 6c 6f 67 75 |c, the | prologu|
|000039e0| 65 0d 00 0d 00 0d 0a 20 | 20 20 20 20 20 6f 72 20 |e...... | or |
|000039f0| 20 6d 61 69 6e 20 20 73 | 65 74 20 6f 66 20 63 6f | main s|et of co|
|00003a00| 6d 6d 65 6e 74 73 20 64 | 65 73 63 72 69 62 69 6e |mments d|escribin|
|00003a10| 67 20 74 68 65 20 70 72 | 6f 63 65 64 75 72 65 20 |g the pr|ocedure |
|00003a20| 73 68 6f 75 6c 64 20 62 | 65 20 6b 65 70 74 20 77 |should b|e kept w|
|00003a30| 69 74 68 0d 00 0d 00 0d | 0a 20 20 20 20 20 20 74 |ith.....|. t|
|00003a40| 68 65 20 62 6f 64 79 2e | 20 20 49 6e 20 74 68 69 |he body.| In thi|
|00003a50| 73 20 6d 61 6e 6e 65 72 | 2c 20 74 68 65 20 20 63 |s manner|, the c|
|00003a60| 6f 6d 6d 65 6e 74 73 20 | 20 61 72 65 20 20 6d 6f |omments | are mo|
|00003a70| 72 65 20 20 61 70 74 20 | 20 74 6f 20 20 62 65 20 |re apt | to be |
|00003a80| 20 6b 65 70 74 0d 00 0d | 00 0d 0a 20 20 20 20 20 | kept...|... |
|00003a90| 20 75 70 2d 74 6f 2d 64 | 61 74 65 20 20 62 79 20 | up-to-d|ate by |
|00003aa0| 20 74 68 65 20 20 70 72 | 6f 67 72 61 6d 6d 65 72 | the pr|ogrammer|
|00003ab0| 20 77 72 69 74 69 6e 67 | 20 6f 72 20 6d 6f 64 69 | writing| or modi|
|00003ac0| 66 79 69 6e 67 20 74 68 | 65 20 63 6f 64 65 2e 20 |fying th|e code. |
|00003ad0| 20 49 66 20 74 68 65 0d | 00 0d 00 0d 0a 20 20 20 | If the.|..... |
|00003ae0| 20 20 20 63 6f 6d 6d 65 | 6e 74 73 20 77 65 72 65 | comme|nts were|
|00003af0| 20 6c 6f 63 61 74 65 64 | 20 69 6e 20 74 68 65 20 | located| in the |
|00003b00| 73 70 65 63 2c 20 69 6e | 20 6f 72 64 65 72 20 74 |spec, in| order t|
|00003b10| 6f 20 67 65 74 20 61 6e | 20 75 70 64 61 74 65 64 |o get an| updated|
|00003b20| 20 20 6c 69 73 74 69 6e | 67 0d 00 0d 00 0d 0a 20 | listin|g...... |
|00003b30| 20 20 20 20 20 6f 66 20 | 20 74 68 65 20 20 63 6f | of | the co|
|00003b40| 6d 6d 65 6e 74 73 2c 20 | 20 74 68 65 20 20 70 72 |mments, | the pr|
|00003b50| 6f 63 65 64 75 72 65 2c | 20 69 74 73 20 70 61 72 |ocedure,| its par|
|00003b60| 65 6e 74 20 61 6e 64 20 | 61 6c 6c 20 6f 66 20 69 |ent and |all of i|
|00003b70| 74 73 20 73 69 62 6c 69 | 6e 67 73 0d 00 0d 00 0d |ts sibli|ngs.....|
|00003b80| 0a 20 20 20 20 20 20 77 | 6f 75 6c 64 20 68 61 76 |. w|ould hav|
|00003b90| 65 20 74 6f 20 62 65 20 | 72 65 63 6f 6d 70 69 6c |e to be |recompil|
|00003ba0| 65 64 2e 20 20 54 68 69 | 73 20 69 73 20 74 6f 74 |ed. Thi|s is tot|
|00003bb0| 61 6c 6c 79 20 61 67 61 | 69 6e 73 74 20 20 74 68 |ally aga|inst th|
|00003bc0| 65 20 20 73 70 69 72 69 | 74 20 20 6f 66 0d 00 0d |e spiri|t of...|
|00003bd0| 00 0d 0a 20 20 20 20 20 | 20 41 64 61 2e 0d 00 0d |... | Ada....|
|00003be0| 00 0d 0a 0d 00 0d 00 0d | 0a 0d 00 0d 00 0d 0a 0d |........|........|
|00003bf0| 00 0d 00 0d 0a 20 20 20 | 20 20 20 33 2e 34 20 20 |..... | 3.4 |
|00003c00| 44 61 74 61 20 50 61 63 | 6b 61 67 65 73 0d 00 0d |Data Pac|kages...|
|00003c10| 00 0d 0a 0d 00 0d 00 0d | 0a 20 20 20 20 20 20 20 |........|. |
|00003c20| 20 20 20 20 49 74 20 69 | 73 20 76 65 72 79 20 75 | It i|s very u|
|00003c30| 73 65 66 75 6c 20 74 6f | 20 68 61 76 65 20 6f 6e |seful to| have on|
|00003c40| 65 20 6c 6f 77 20 6c 65 | 76 65 6c 20 70 61 63 6b |e low le|vel pack|
|00003c50| 61 67 65 20 74 68 61 74 | 20 64 65 63 6c 61 72 65 |age that| declare|
|00003c60| 73 20 74 68 65 0d 00 0d | 00 0d 0a 20 20 20 20 20 |s the...|... |
|00003c70| 20 64 61 74 61 20 20 20 | 74 79 70 65 73 20 20 61 | data |types a|
|00003c80| 6e 64 20 20 64 61 74 61 | 20 20 73 74 72 75 63 74 |nd data| struct|
|00003c90| 75 72 65 73 20 20 75 73 | 65 64 20 20 61 6e 64 20 |ures us|ed and |
|00003ca0| 20 74 68 65 20 20 67 6c | 6f 62 61 6c 20 20 76 61 | the gl|obal va|
|00003cb0| 72 69 61 62 6c 65 73 0d | 00 0d 00 0d 0a 20 20 20 |riables.|..... |
|00003cc0| 20 20 20 72 65 66 65 72 | 65 6e 63 65 64 2e 20 20 | refer|enced. |
|00003cd0| 54 68 65 6e 20 74 77 6f | 20 6f 72 20 6d 6f 72 65 |Then two| or more|
|00003ce0| 20 70 61 63 6b 61 67 65 | 73 20 63 61 6e 20 62 65 | package|s can be|
|00003cf0| 20 64 65 76 65 6c 6f 70 | 65 64 20 69 6e 64 65 70 | develop|ed indep|
|00003d00| 65 6e 64 65 6e 74 6c 79 | 2c 0d 00 0d 00 0d 0a 20 |endently|,...... |
|00003d10| 20 20 20 20 20 65 61 63 | 68 20 20 6f 6e 65 20 20 | eac|h one |
|00003d20| 22 57 49 54 48 22 69 6e | 67 20 20 74 68 65 20 20 |"WITH"in|g the |
|00003d30| 64 61 74 61 20 20 70 61 | 63 6b 61 67 65 2e 20 20 |data pa|ckage. |
|00003d40| 20 4f 6e 20 70 61 63 6b | 61 67 65 20 6f 66 20 72 | On pack|age of r|
|00003d50| 6f 75 74 69 6e 65 73 20 | 63 61 6e 0d 00 0d 00 0d |outines |can.....|
|00003d60| 0a 20 20 20 20 20 20 72 | 65 61 64 2f 77 72 69 74 |. r|ead/writ|
|00003d70| 65 20 74 68 65 20 64 61 | 74 61 20 61 6e 64 20 61 |e the da|ta and a|
|00003d80| 6e 6f 74 68 65 72 20 63 | 6f 75 6c 64 20 6d 61 6e |nother c|ould man|
|00003d90| 69 70 75 6c 61 74 65 20 | 74 68 65 20 64 61 74 61 |ipulate |the data|
|00003da0| 2e 20 20 42 79 20 75 73 | 69 6e 67 20 61 0d 00 0d |. By us|ing a...|
|00003db0| 00 0d 0a 20 20 20 20 20 | 20 64 61 74 61 20 20 70 |... | data p|
|00003dc0| 61 63 6b 61 67 65 20 20 | 69 6e 20 20 74 68 69 73 |ackage |in this|
|00003dd0| 20 20 77 61 79 2c 20 65 | 61 63 68 20 70 61 63 6b | way, e|ach pack|
|00003de0| 61 67 65 20 72 65 66 65 | 72 65 6e 63 69 6e 67 20 |age refe|rencing |
|00003df0| 74 68 65 20 64 61 74 61 | 20 63 61 6e 20 62 65 0d |the data| can be.|
|00003e00| 00 0d 00 0d 0a 20 20 20 | 20 20 20 64 65 76 65 6c |..... | devel|
|00003e10| 6f 70 65 64 20 61 6e 64 | 20 74 65 73 74 65 64 20 |oped and| tested |
|00003e20| 69 6e 64 65 70 65 6e 64 | 65 6e 74 20 6f 66 20 65 |independ|ent of e|
|00003e30| 61 63 68 20 6f 74 68 65 | 72 2c 20 77 69 74 68 6f |ach othe|r, witho|
|00003e40| 75 74 20 65 76 65 6e 20 | 68 61 76 69 6e 67 20 74 |ut even |having t|
|00003e50| 6f 0d 00 0d 00 0d 0a 20 | 20 20 20 20 20 72 65 63 |o...... | rec|
|00003e60| 6f 6d 70 69 6c 65 20 6f | 74 68 65 72 20 72 6f 75 |ompile o|ther rou|
|00003e70| 74 69 6e 65 73 20 75 73 | 69 6e 67 20 74 68 65 20 |tines us|ing the |
|00003e80| 64 61 74 61 2e 0d 00 0d | 00 0d 0a 0d 00 0d 00 0d |data....|........|
|00003e90| 0a 0d 00 0d 00 0d 0a 0d | 00 0d 00 0d 0a 20 20 20 |........|..... |
|00003ea0| 20 20 20 33 2e 35 20 20 | 4e 61 6d 69 6e 67 20 43 | 3.5 |Naming C|
|00003eb0| 6f 6e 76 65 6e 74 69 6f | 6e 73 20 46 6f 72 20 50 |onventio|ns For P|
|00003ec0| 61 63 6b 61 67 65 73 20 | 4f 66 20 53 69 6d 69 6c |ackages |Of Simil|
|00003ed0| 61 72 20 52 6f 75 74 69 | 6e 65 73 0d 00 0d 00 0d |ar Routi|nes.....|
|00003ee0| 0a 0d 00 0d 00 0d 0a 20 | 20 20 20 20 20 20 20 20 |....... | |
|00003ef0| 20 20 57 68 65 6e 20 74 | 77 6f 20 70 61 63 6b 61 | When t|wo packa|
|00003f00| 67 65 73 20 63 6f 6e 74 | 61 69 6e 20 72 6f 75 74 |ges cont|ain rout|
|00003f10| 69 6e 65 73 20 77 69 74 | 68 20 74 68 65 20 20 73 |ines wit|h the s|
|00003f20| 61 6d 65 20 20 70 75 72 | 70 6f 73 65 2c 20 20 6f |ame pur|pose, o|
|00003f30| 6e 6c 79 0d 00 0d 00 0d | 0a 20 20 20 20 20 20 61 |nly.....|. a|
|00003f40| 70 70 6c 69 65 64 20 20 | 74 6f 20 20 61 20 20 64 |pplied |to a d|
|00003f50| 69 66 66 65 72 65 6e 74 | 20 20 64 61 74 61 20 20 |ifferent| data |
|00003f60| 74 79 70 65 2c 20 20 69 | 74 20 20 69 73 20 76 65 |type, i|t is ve|
|00003f70| 72 79 20 75 73 65 66 75 | 6c 20 74 6f 20 6e 61 6d |ry usefu|l to nam|
|00003f80| 65 20 74 68 65 0d 00 0d | 00 0d 0a 20 20 20 20 20 |e the...|... |
|00003f90| 20 72 6f 75 74 69 6e 65 | 73 20 20 69 6e 20 20 74 | routine|s in t|
|00003fa0| 68 65 20 20 70 61 63 6b | 61 67 65 73 20 20 74 68 |he pack|ages th|
|00003fb0| 65 20 20 73 61 6d 65 2e | 20 20 20 54 68 65 6e 20 |e same.| Then |
|00003fc0| 20 74 68 65 20 20 72 6f | 75 74 69 6e 65 73 20 20 | the ro|utines |
|00003fd0| 63 61 6e 20 20 62 65 0d | 00 0d 00 0d 0a 20 20 20 |can be.|..... |
|00003fe0| 20 20 20 72 65 66 65 72 | 65 6e 63 65 64 20 20 20 | refer|enced |
|00003ff0| 20 62 79 20 20 20 20 73 | 75 63 68 20 20 20 20 6e | by s|uch n|
|00004000| 61 6d 65 73 20 20 20 20 | 61 73 3a 20 20 20 20 20 |ames |as: |
|00004010| 45 4c 45 4d 45 4e 54 2e | 49 4e 49 54 49 41 4c 49 |ELEMENT.|INITIALI|
|00004020| 5a 45 20 20 20 20 61 6e | 64 0d 00 0d 00 0d 0a 20 |ZE an|d...... |
|00004030| 20 20 20 20 20 53 55 42 | 53 59 53 54 45 4d 2e 49 | SUB|SYSTEM.I|
|00004040| 4e 49 54 49 41 4c 49 5a | 45 2e 20 20 28 55 73 69 |NITIALIZ|E. (Usi|
|00004050| 6e 67 20 74 68 65 20 73 | 61 6d 65 20 6e 61 6d 65 |ng the s|ame name|
|00004060| 20 20 66 6f 72 20 20 75 | 6e 69 74 73 20 20 69 6e | for u|nits in|
|00004070| 20 20 64 69 66 66 65 72 | 65 6e 74 0d 00 0d 00 0d | differ|ent.....|
|00004080| 0a 20 20 20 20 20 20 70 | 61 63 6b 61 67 65 73 20 |. p|ackages |
|00004090| 69 73 20 6e 6f 74 20 73 | 75 70 70 6f 72 74 65 64 |is not s|upported|
|000040a0| 20 62 79 20 73 6f 6d 65 | 20 6c 69 62 72 61 72 79 | by some| library|
|000040b0| 20 6d 61 69 6e 74 65 6e | 61 6e 63 65 20 70 72 6f | mainten|ance pro|
|000040c0| 63 65 64 75 72 65 73 2e | 29 0d 00 0d 00 0d 0a 0d |cedures.|).......|
|000040d0| 00 0d 00 0d 0a 0d 00 0d | 00 0d 0a 0d 00 0d 00 0d |........|........|
|000040e0| 0a 20 20 20 20 20 20 33 | 2e 36 20 20 43 68 61 6e |. 3|.6 Chan|
|000040f0| 67 69 6e 67 20 54 68 65 | 20 56 61 6c 75 65 20 4f |ging The| Value O|
|00004100| 66 20 54 68 65 20 44 69 | 73 63 72 69 6d 69 6e 61 |f The Di|scrimina|
|00004110| 6e 74 20 49 6e 20 41 20 | 56 61 72 69 61 6e 74 20 |nt In A |Variant |
|00004120| 52 65 63 6f 72 64 0d 00 | 0d 00 0d 0a 0d 00 0d 00 |Record..|........|
|00004130| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 57 68 65 |.. | Whe|
|00004140| 6e 20 63 68 61 6e 67 69 | 6e 67 20 74 68 65 20 64 |n changi|ng the d|
|00004150| 69 73 63 72 69 6d 69 6e | 61 6e 74 27 73 20 76 61 |iscrimin|ant's va|
|00004160| 6c 75 65 20 69 6e 20 61 | 20 76 61 72 69 61 6e 74 |lue in a| variant|
|00004170| 20 72 65 63 6f 72 64 2c | 20 20 65 61 63 68 0d 00 | record,| each..|
|00004180| 0d 00 0d 0a 20 20 20 20 | 20 20 66 69 65 6c 64 20 |.... | field |
|00004190| 20 69 6e 20 74 68 65 20 | 72 65 63 6f 72 64 20 6d | in the |record m|
|000041a0| 75 73 74 20 62 65 20 61 | 73 73 69 67 6e 65 64 2e |ust be a|ssigned.|
|000041b0| 20 20 57 65 20 66 6f 75 | 6e 64 20 69 74 20 77 61 | We fou|nd it wa|
|000041c0| 73 20 76 65 72 79 20 75 | 73 65 66 75 6c 20 74 6f |s very u|seful to|
|000041d0| 0d 00 0d 00 0d 0a 20 20 | 20 20 20 20 77 72 69 74 |...... | writ|
|000041e0| 65 20 61 20 73 65 74 20 | 6f 66 20 70 72 6f 63 65 |e a set |of proce|
|000041f0| 64 75 72 65 73 20 77 68 | 69 63 68 20 77 6f 75 6c |dures wh|ich woul|
|00004200| 64 20 63 68 61 6e 67 65 | 20 20 74 68 65 20 20 64 |d change| the d|
|00004210| 69 73 63 72 69 6d 69 6e | 61 6e 74 20 20 6f 66 20 |iscrimin|ant of |
|00004220| 20 61 0d 00 0d 00 0d 0a | 20 20 20 20 20 20 72 65 | a......| re|
|00004230| 63 6f 72 64 2e 20 20 20 | 45 61 63 68 20 20 70 72 |cord. |Each pr|
|00004240| 6f 63 65 64 75 72 65 20 | 77 6f 75 6c 64 20 61 73 |ocedure |would as|
|00004250| 73 69 67 6e 20 74 68 65 | 20 6e 6f 6e 2d 76 61 72 |sign the| non-var|
|00004260| 69 61 6e 74 20 70 6f 72 | 74 69 6f 6e 73 20 6f 66 |iant por|tions of|
|00004270| 20 74 68 65 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 | the....|.. |
|00004280| 72 65 63 6f 72 64 20 74 | 68 65 20 6f 6c 64 20 76 |record t|he old v|
|00004290| 61 6c 75 65 73 20 61 6e | 64 20 61 73 73 69 67 6e |alues an|d assign|
|000042a0| 20 69 6e 20 74 68 65 20 | 76 61 72 69 61 6e 74 20 | in the |variant |
|000042b0| 70 6f 72 74 69 6f 6e 73 | 20 73 6f 6d 65 20 20 64 |portions| some d|
|000042c0| 65 66 61 75 6c 74 0d 00 | 0d 00 0d 0a 20 20 20 20 |efault..|.... |
|000042d0| 20 20 76 61 6c 75 65 2e | 20 20 20 20 4f 6e 65 20 | value.| One |
|000042e0| 20 20 70 72 6f 63 65 64 | 75 72 65 20 20 20 77 61 | proced|ure wa|
|000042f0| 73 20 20 20 77 72 69 74 | 74 65 6e 20 20 20 66 6f |s writ|ten fo|
|00004300| 72 20 20 65 61 63 68 20 | 20 62 72 61 6e 63 68 20 |r each | branch |
|00004310| 20 6f 66 20 20 74 68 65 | 0d 00 0d 00 0d 0a 20 20 | of the|...... |
|00004320| 20 20 20 20 64 69 73 63 | 72 69 6d 69 6e 61 6e 74 | disc|riminant|
|00004330| 27 73 20 63 61 73 65 20 | 73 74 61 74 65 6d 65 6e |'s case |statemen|
|00004340| 74 2e 0d 00 0d 00 0d 0a | 0d 00 0d 00 0d 0a 0d 00 |t.......|........|
|00004350| 0d 00 0d 0a 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 |........|.. |
|00004360| 33 2e 37 20 20 4d 65 6e | 75 20 50 61 63 6b 61 67 |3.7 Men|u Packag|
|00004370| 65 0d 00 0d 00 0d 0a 0d | 00 0d 00 0d 0a 20 20 20 |e.......|..... |
|00004380| 20 20 20 20 20 20 20 20 | 57 65 20 66 6f 75 6e 64 | |We found|
|00004390| 20 69 74 20 76 65 72 79 | 20 75 73 65 66 75 6c 20 | it very| useful |
|000043a0| 74 6f 20 77 72 69 74 65 | 20 61 20 70 61 63 6b 61 |to write| a packa|
|000043b0| 67 65 20 20 6f 66 20 20 | 70 72 6f 63 65 64 75 72 |ge of |procedur|
|000043c0| 65 73 20 20 77 68 69 63 | 68 0d 00 0d 00 0d 0a 20 |es whic|h...... |
|000043d0| 20 20 20 20 20 64 69 73 | 70 6c 61 79 65 64 20 20 | dis|played |
|000043e0| 6d 65 6e 75 73 2e 20 20 | 20 45 61 63 68 20 20 70 |menus. | Each p|
|000043f0| 72 6f 63 65 64 75 72 65 | 20 64 69 73 70 6c 61 79 |rocedure| display|
|00004400| 65 64 20 6f 6e 65 20 6d | 65 6e 75 20 74 6f 20 74 |ed one m|enu to t|
|00004410| 68 65 20 75 73 65 72 20 | 61 6e 64 0d 00 0d 00 0d |he user |and.....|
|00004420| 0a 20 20 20 20 20 20 70 | 72 6f 6d 70 74 65 64 20 |. p|rompted |
|00004430| 66 6f 72 20 61 20 76 61 | 6c 69 64 20 69 6e 70 75 |for a va|lid inpu|
|00004440| 74 2e 20 20 41 73 20 73 | 6f 6f 6e 20 61 73 20 61 |t. As s|oon as a|
|00004450| 20 76 61 6c 69 64 20 72 | 65 73 70 6f 6e 73 65 20 | valid r|esponse |
|00004460| 77 61 73 20 72 65 63 65 | 69 76 65 64 2c 0d 00 0d |was rece|ived,...|
|00004470| 00 0d 0a 20 20 20 20 20 | 20 69 74 20 20 77 61 73 |... | it was|
|00004480| 20 20 72 65 74 75 72 6e | 65 64 20 20 74 6f 20 20 | return|ed to |
|00004490| 74 68 65 20 20 63 61 6c | 6c 69 6e 67 20 20 72 6f |the cal|ling ro|
|000044a0| 75 74 69 6e 65 2c 20 20 | 6f 74 68 65 72 77 69 73 |utine, |otherwis|
|000044b0| 65 20 20 74 68 65 20 75 | 73 65 72 20 77 61 73 0d |e the u|ser was.|
|000044c0| 00 0d 00 0d 0a 0c 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|000044d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000044e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000044f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004500| 20 20 20 20 20 20 50 61 | 67 65 20 37 0d 00 0d 00 | Pa|ge 7....|
|00004510| 0d 0a 0d 00 0d 00 0d 0a | 0d 00 0d 00 0d 0a 20 20 |........|...... |
|00004520| 20 20 20 20 72 65 70 72 | 6f 6d 70 74 65 64 2e 20 | repr|ompted. |
|00004530| 20 54 68 65 20 62 6f 64 | 69 65 73 20 6f 66 20 74 | The bod|ies of t|
|00004540| 68 65 20 6d 65 6e 75 73 | 20 63 6f 75 6c 64 20 20 |he menus| could |
|00004550| 62 65 20 20 6d 6f 64 69 | 66 69 65 64 20 20 6f 72 |be modi|fied or|
|00004560| 20 20 65 6e 68 61 6e 63 | 65 64 0d 00 0d 00 0d 0a | enhanc|ed......|
|00004570| 20 20 20 20 20 20 77 69 | 74 68 6f 75 74 20 63 68 | wi|thout ch|
|00004580| 61 6e 67 69 6e 67 20 6f | 72 20 72 65 63 6f 6d 70 |anging o|r recomp|
|00004590| 69 6c 69 6e 67 20 74 68 | 65 20 63 61 6c 6c 69 6e |iling th|e callin|
|000045a0| 67 20 70 72 6f 63 65 64 | 75 72 65 73 2e 0d 00 0d |g proced|ures....|
|000045b0| 00 0d 0a 0d 00 0d 00 0d | 0a 0d 00 0d 00 0d 0a 0d |........|........|
|000045c0| 00 0d 00 0d 0a 20 20 20 | 20 20 20 33 2e 38 20 20 |..... | 3.8 |
|000045d0| 4c 6f 6f 70 20 56 61 72 | 69 61 62 6c 65 73 20 53 |Loop Var|iables S|
|000045e0| 68 6f 75 6c 64 20 4e 4f | 54 20 42 65 20 50 72 65 |hould NO|T Be Pre|
|000045f0| 76 69 6f 75 73 6c 79 20 | 44 65 63 6c 61 72 65 64 |viously |Declared|
|00004600| 0d 00 0d 00 0d 0a 0d 00 | 0d 00 0d 0a 20 20 20 20 |........|.... |
|00004610| 20 20 20 20 20 20 20 49 | 66 20 61 20 6c 6f 6f 70 | I|f a loop|
|00004620| 20 76 61 72 69 61 62 6c | 65 20 69 73 20 70 72 65 | variabl|e is pre|
|00004630| 76 69 6f 75 73 6c 79 20 | 64 65 63 6c 61 72 65 64 |viously |declared|
|00004640| 2c 20 61 20 6e 65 77 20 | 76 61 72 69 61 62 6c 65 |, a new |variable|
|00004650| 20 6f 66 20 20 74 68 65 | 0d 00 0d 00 0d 0a 20 20 | of the|...... |
|00004660| 20 20 20 20 73 61 6d 65 | 20 20 6e 61 6d 65 20 20 | same| name |
|00004670| 69 73 20 63 72 65 61 74 | 65 64 20 61 73 20 73 6f |is creat|ed as so|
|00004680| 6f 6e 20 61 73 20 74 68 | 65 20 6c 6f 6f 70 20 69 |on as th|e loop i|
|00004690| 73 20 65 6e 63 6f 75 6e | 74 65 72 65 64 2e 20 20 |s encoun|tered. |
|000046a0| 41 6e 79 20 76 61 6c 75 | 65 73 0d 00 0d 00 0d 0a |Any valu|es......|
|000046b0| 20 20 20 20 20 20 74 68 | 65 20 6c 6f 6f 70 20 76 | th|e loop v|
|000046c0| 61 72 69 61 62 6c 65 20 | 74 61 6b 65 73 20 6f 6e |ariable |takes on|
|000046d0| 20 61 72 65 20 6e 6f 74 | 20 72 65 66 6c 65 63 74 | are not| reflect|
|000046e0| 65 64 20 20 69 6e 20 20 | 74 68 65 20 20 6f 74 68 |ed in |the oth|
|000046f0| 65 72 20 20 64 65 63 6c | 61 72 65 64 0d 00 0d 00 |er decl|ared....|
|00004700| 0d 0a 20 20 20 20 20 20 | 76 61 72 69 61 62 6c 65 |.. |variable|
|00004710| 2e 20 20 20 42 79 20 20 | 6e 6f 74 20 64 65 63 6c |. By |not decl|
|00004720| 61 72 69 6e 67 20 74 68 | 65 20 6c 6f 6f 70 20 76 |aring th|e loop v|
|00004730| 61 72 69 61 62 6c 65 2c | 20 74 68 65 20 63 6f 6d |ariable,| the com|
|00004740| 70 69 6c 65 72 20 63 61 | 6e 20 74 68 65 6e 0d 00 |piler ca|n then..|
|00004750| 0d 00 0d 0a 20 20 20 20 | 20 20 74 65 6c 6c 20 74 |.... | tell t|
|00004760| 68 65 20 70 72 6f 67 72 | 61 6d 6d 65 72 20 74 68 |he progr|ammer th|
|00004770| 61 74 20 61 6e 79 20 72 | 65 66 65 72 65 6e 63 65 |at any r|eference|
|00004780| 20 74 6f 20 74 68 65 20 | 6c 6f 6f 70 20 76 61 72 | to the |loop var|
|00004790| 69 61 62 6c 65 20 6f 75 | 74 73 69 64 65 20 6f 66 |iable ou|tside of|
|000047a0| 0d 00 0d 00 0d 0a 20 20 | 20 20 20 20 74 68 65 20 |...... | the |
|000047b0| 20 6c 6f 6f 70 20 69 73 | 20 61 63 74 75 61 6c 6c | loop is| actuall|
|000047c0| 79 20 61 20 72 65 66 65 | 72 65 6e 63 65 20 74 6f |y a refe|rence to|
|000047d0| 20 61 6e 20 75 6e 64 65 | 63 6c 61 72 65 64 20 76 | an unde|clared v|
|000047e0| 61 72 69 61 62 6c 65 2e | 20 20 54 68 69 73 20 77 |ariable.| This w|
|000047f0| 61 73 0d 00 0d 00 0d 0a | 20 20 20 20 20 20 64 69 |as......| di|
|00004800| 73 63 6f 76 65 72 65 64 | 20 62 79 20 6d 6f 76 69 |scovered| by movi|
|00004810| 6e 67 20 74 68 65 20 63 | 6f 64 65 20 69 6e 73 69 |ng the c|ode insi|
|00004820| 64 65 20 61 20 6c 6f 6f | 70 20 6f 66 20 70 72 6f |de a loo|p of pro|
|00004830| 63 65 64 75 72 65 20 41 | 20 74 6f 20 61 20 6e 65 |cedure A| to a ne|
|00004840| 73 74 65 64 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 |sted....|.. |
|00004850| 70 72 6f 63 65 64 75 72 | 65 2c 20 20 42 2e 20 20 |procedur|e, B. |
|00004860| 20 54 68 65 20 20 63 6f | 64 65 20 73 74 69 6c 6c | The co|de still|
|00004870| 20 74 72 69 65 64 20 74 | 6f 20 72 65 66 65 72 65 | tried t|o refere|
|00004880| 6e 63 65 20 74 68 65 20 | 6c 6f 6f 70 20 76 61 72 |nce the |loop var|
|00004890| 69 61 62 6c 65 2c 0d 00 | 0d 00 0d 0a 20 20 20 20 |iable,..|.... |
|000048a0| 20 20 62 75 74 20 69 6e | 73 74 65 61 64 20 69 74 | but in|stead it|
|000048b0| 20 72 65 66 65 72 65 6e | 63 65 64 20 74 68 65 20 | referen|ced the |
|000048c0| 64 65 66 61 75 6c 74 20 | 76 61 6c 75 65 20 6f 66 |default |value of|
|000048d0| 20 74 68 65 20 20 76 61 | 72 69 61 62 6c 65 20 20 | the va|riable |
|000048e0| 64 65 63 6c 61 72 65 64 | 0d 00 0d 00 0d 0a 20 20 |declared|...... |
|000048f0| 20 20 20 20 69 6e 20 70 | 72 6f 63 65 64 75 72 65 | in p|rocedure|
|00004900| 20 42 2e 0d 00 0d 00 0d | 0a 0d 00 0d 00 0d 0a 0d | B......|........|
|00004910| 00 0d 00 0d 0a 0d 00 0d | 00 0d 0a 20 20 20 20 20 |........|... |
|00004920| 20 33 2e 39 20 20 50 72 | 6f 6d 70 74 69 6e 67 20 | 3.9 Pr|ompting |
|00004930| 57 69 74 68 20 48 65 6c | 70 20 41 76 61 69 6c 61 |With Hel|p Availa|
|00004940| 62 6c 65 0d 00 0d 00 0d | 0a 0d 00 0d 00 0d 0a 20 |ble.....|....... |
|00004950| 20 20 20 20 20 20 20 20 | 20 20 54 68 69 73 20 69 | | This i|
|00004960| 73 20 61 6e 20 65 78 61 | 6d 70 6c 65 20 6f 66 20 |s an exa|mple of |
|00004970| 70 72 6f 6d 70 74 69 6e | 67 20 74 68 65 20 75 73 |promptin|g the us|
|00004980| 65 72 20 66 6f 72 20 20 | 61 20 20 73 74 72 69 6e |er for |a strin|
|00004990| 67 20 20 74 79 70 65 20 | 20 6f 66 0d 00 0d 00 0d |g type | of.....|
|000049a0| 0a 20 20 20 20 20 20 69 | 6e 70 75 74 2e 20 20 20 |. i|nput. |
|000049b0| 49 66 20 20 74 68 65 20 | 20 75 73 65 72 20 20 65 |If the | user e|
|000049c0| 6e 74 65 72 73 20 61 20 | 27 3f 27 3c 63 72 3e 2c |nters a |'?'<cr>,|
|000049d0| 20 6d 6f 72 65 20 69 6e | 66 6f 72 6d 61 74 69 6f | more in|formatio|
|000049e0| 6e 20 69 73 20 67 69 76 | 65 6e 20 74 6f 0d 00 0d |n is giv|en to...|
|000049f0| 00 0d 0a 20 20 20 20 20 | 20 68 69 6d 2e 20 20 49 |... | him. I|
|00004a00| 74 20 61 6c 73 6f 20 68 | 61 6e 64 6c 65 73 20 61 |t also h|andles a|
|00004a10| 6e 20 20 69 6e 66 69 6e | 69 74 65 20 20 6e 75 6d |n infin|ite num|
|00004a20| 62 65 72 20 20 6f 66 20 | 20 3c 63 72 3e 20 20 62 |ber of | <cr> b|
|00004a30| 65 66 6f 72 65 20 20 64 | 61 74 61 20 20 69 73 0d |efore d|ata is.|
|00004a40| 00 0d 00 0d 0a 20 20 20 | 20 20 20 65 6e 74 65 72 |..... | enter|
|00004a50| 65 64 2e 0d 00 0d 00 0d | 0a 0d 00 0d 00 0d 0a 20 |ed......|....... |
|00004a60| 20 20 20 20 20 20 20 66 | 75 6e 63 74 69 6f 6e 20 | f|unction |
|00004a70| 20 50 52 4f 4a 45 43 54 | 5f 4e 41 4d 45 20 72 65 | PROJECT|_NAME re|
|00004a80| 74 75 72 6e 20 73 74 72 | 69 6e 67 20 69 73 0d 00 |turn str|ing is..|
|00004a90| 0d 00 0d 0a 20 20 20 20 | 20 20 20 20 62 65 67 69 |.... | begi|
|00004aa0| 6e 0d 00 0d 00 0d 0a 20 | 20 20 20 20 20 20 20 20 |n...... | |
|00004ab0| 20 2d 2d 20 62 6c 61 6e | 6b 20 6f 75 74 20 74 68 | -- blan|k out th|
|00004ac0| 65 20 69 6e 70 75 74 20 | 6c 69 6e 65 0d 00 0d 00 |e input |line....|
|00004ad0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 6c 69 6e 65 |.. | line|
|00004ae0| 20 3a 3d 20 28 6f 74 68 | 65 72 73 20 3d 3e 20 27 | := (oth|ers => '|
|00004af0| 20 27 29 3b 0d 00 0d 00 | 0d 0a 0d 00 0d 00 0d 0a | ');....|........|
|00004b00| 20 20 20 20 20 20 20 20 | 20 20 2d 2d 20 61 73 6b | | -- ask|
|00004b10| 20 61 62 62 72 65 76 69 | 61 74 65 64 20 71 75 65 | abbrevi|ated que|
|00004b20| 73 74 69 6f 6e 0d 00 0d | 00 0d 0a 20 20 20 20 20 |stion...|... |
|00004b30| 20 20 20 20 20 70 75 74 | 28 22 20 50 72 6f 6a 65 | put|(" Proje|
|00004b40| 63 74 20 4e 61 6d 65 20 | 3a 20 22 29 3b 0d 00 0d |ct Name |: ");...|
|00004b50| 00 0d 0a 0d 00 0d 00 0d | 0a 20 20 20 20 20 20 20 |........|. |
|00004b60| 20 20 20 6c 6f 6f 70 0d | 00 0d 00 0d 0a 20 20 20 | loop.|..... |
|00004b70| 20 20 20 20 20 20 20 20 | 20 77 68 69 6c 65 20 65 | | while e|
|00004b80| 6e 64 5f 6f 66 5f 6c 69 | 6e 65 20 6c 6f 6f 70 0d |nd_of_li|ne loop.|
|00004b90| 00 0d 00 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |..... | |
|00004ba0| 20 20 20 73 6b 69 70 5f | 6c 69 6e 65 3b 0d 00 0d | skip_|line;...|
|00004bb0| 00 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |... | |
|00004bc0| 20 6e 65 77 5f 6c 69 6e | 65 28 32 29 3b 0d 00 0d | new_lin|e(2);...|
|00004bd0| 00 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |... | |
|00004be0| 20 70 75 74 5f 6c 69 6e | 65 28 22 20 57 68 61 74 | put_lin|e(" What|
|00004bf0| 20 69 73 20 74 68 65 20 | 70 72 6f 6a 65 63 74 20 | is the |project |
|00004c00| 6e 61 6d 65 20 69 6e 20 | 33 30 20 63 68 61 72 61 |name in |30 chara|
|00004c10| 63 74 65 72 73 20 6f 72 | 20 6c 65 73 73 3f 22 29 |cters or| less?")|
|00004c20| 3b 0d 00 0d 00 0d 0a 20 | 20 20 20 20 20 20 20 20 |;...... | |
|00004c30| 20 20 20 20 20 70 75 74 | 28 22 20 50 72 6f 6a 65 | put|(" Proje|
|00004c40| 63 74 20 4e 61 6d 65 20 | 3a 20 22 29 3b 0d 00 0d |ct Name |: ");...|
|00004c50| 00 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 65 |... | e|
|00004c60| 6e 64 20 6c 6f 6f 70 3b | 0d 00 0d 00 0d 0a 20 20 |nd loop;|...... |
|00004c70| 20 20 20 20 20 20 20 20 | 20 20 0d 00 0d 00 0d 0a | | ......|
|00004c80| 20 20 20 20 20 20 20 20 | 20 20 20 20 2d 2d 20 67 | | -- g|
|00004c90| 65 74 20 74 68 65 20 72 | 65 63 6f 72 64 20 66 69 |et the r|ecord fi|
|00004ca0| 65 6c 64 0d 00 0d 00 0d | 0a 20 20 20 20 20 20 20 |eld.....|. |
|00004cb0| 20 20 20 20 20 67 65 74 | 5f 6c 69 6e 65 28 6c 69 | get|_line(li|
|00004cc0| 6e 65 2c 6c 69 6e 65 5f | 6c 6e 67 74 68 29 3b 0d |ne,line_|lngth);.|
|00004cd0| 00 0d 00 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |..... | |
|00004ce0| 20 6e 65 77 5f 6c 69 6e | 65 28 32 29 3b 0d 00 0d | new_lin|e(2);...|
|00004cf0| 00 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 65 |... | e|
|00004d00| 78 69 74 20 77 68 65 6e | 20 6c 69 6e 65 28 31 29 |xit when| line(1)|
|00004d10| 20 2f 3d 20 27 3f 27 3b | 0d 00 0d 00 0d 0a 0d 00 | /= '?';|........|
|00004d20| 0d 00 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|00004d30| 73 6b 69 70 5f 6c 69 6e | 65 3b 0d 00 0d 00 0d 0a |skip_lin|e;......|
|00004d40| 20 20 20 20 20 20 20 20 | 20 20 20 20 6e 65 77 5f | | new_|
|00004d50| 6c 69 6e 65 3b 0d 00 0d | 00 0d 0a 20 20 20 20 20 |line;...|... |
|00004d60| 20 20 20 20 20 20 20 70 | 75 74 5f 6c 69 6e 65 28 | p|ut_line(|
|00004d70| 22 20 57 68 61 74 20 69 | 73 20 74 68 65 20 70 72 |" What i|s the pr|
|00004d80| 6f 6a 65 63 74 20 6e 61 | 6d 65 20 69 6e 20 33 30 |oject na|me in 30|
|00004d90| 20 63 68 61 72 61 63 74 | 65 72 73 20 6f 72 20 6c | charact|ers or l|
|00004da0| 65 73 73 3f 22 29 3b 0d | 00 0d 00 0d 0a 20 20 20 |ess?");.|..... |
|00004db0| 20 20 20 20 20 20 20 20 | 20 70 75 74 28 22 20 50 | | put(" P|
|00004dc0| 72 6f 6a 65 63 74 20 4e | 61 6d 65 20 3a 20 22 29 |roject N|ame : ")|
|00004dd0| 3b 0d 00 0d 00 0d 0a 20 | 20 20 20 20 20 20 20 20 |;...... | |
|00004de0| 20 65 6e 64 20 6c 6f 6f | 70 3b 0d 00 0d 00 0d 0a | end loo|p;......|
|00004df0| 20 20 20 20 20 20 20 20 | 20 20 72 65 74 75 72 6e | | return|
|00004e00| 20 6c 69 6e 65 28 31 2e | 2e 44 41 54 41 5f 50 4b | line(1.|.DATA_PK|
|00004e10| 47 2e 70 72 6f 6a 65 63 | 74 5f 6e 61 6d 65 27 6c |G.projec|t_name'l|
|00004e20| 61 73 74 29 3b 0d 00 0d | 00 0d 0a 20 20 20 20 20 |ast);...|... |
|00004e30| 20 20 20 65 6e 64 20 50 | 52 4f 4a 45 43 54 5f 4e | end P|ROJECT_N|
|00004e40| 41 4d 45 3b 0d 00 0d 00 | 0d 0a 0c 20 20 20 20 20 |AME;....|... |
|00004e50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004e60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004e70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004e80| 20 20 20 20 20 20 20 20 | 20 20 20 50 61 67 65 20 | | Page |
|00004e90| 38 0d 00 0d 00 0d 0a 0d | 00 0d 00 0d 0a 0d 00 0d |8.......|........|
|00004ea0| 00 0d 0a 0d 00 0d 00 0d | 0a 0d 00 0d 00 0d 0a 0d |........|........|
|00004eb0| 00 0d 00 0d 0a 0d 00 0d | 00 0d 0a 20 20 20 20 20 |........|... |
|00004ec0| 20 33 2e 31 30 20 20 55 | 73 69 6e 67 20 41 6e 20 | 3.10 U|sing An |
|00004ed0| 45 78 63 65 70 74 69 6f | 6e 20 41 73 20 50 61 72 |Exceptio|n As Par|
|00004ee0| 74 20 4f 66 20 54 68 65 | 20 50 72 6f 6d 70 74 0d |t Of The| Prompt.|
|00004ef0| 00 0d 00 0d 0a 0d 00 0d | 00 0d 0a 20 20 20 20 20 |........|... |
|00004f00| 20 20 20 20 20 20 54 68 | 69 73 20 66 75 6e 63 74 | Th|is funct|
|00004f10| 69 6f 6e 20 64 65 6d 6f | 6e 73 74 72 61 74 65 73 |ion demo|nstrates|
|00004f20| 20 68 6f 77 20 61 20 75 | 73 65 72 20 20 63 61 6e | how a u|ser can|
|00004f30| 20 20 62 65 20 20 70 72 | 6f 6d 70 74 65 64 20 20 | be pr|ompted |
|00004f40| 66 6f 72 20 20 61 6e 0d | 00 0d 00 0d 0a 20 20 20 |for an.|..... |
|00004f50| 20 20 20 69 6e 74 65 67 | 65 72 2e 20 20 20 49 66 | integ|er. If|
|00004f60| 20 74 68 65 20 75 73 65 | 72 20 65 6e 74 65 72 73 | the use|r enters|
|00004f70| 20 27 3f 27 20 6f 72 20 | 61 6e 20 69 6e 63 6f 72 | '?' or |an incor|
|00004f80| 72 65 63 74 20 6e 75 6d | 62 65 72 2c 20 61 6e 20 |rect num|ber, an |
|00004f90| 65 78 63 65 70 74 69 6f | 6e 0d 00 0d 00 0d 0a 20 |exceptio|n...... |
|00004fa0| 20 20 20 20 20 69 73 20 | 72 61 69 73 65 64 20 61 | is |raised a|
|00004fb0| 6e 64 20 74 68 65 20 75 | 73 65 72 20 69 73 20 67 |nd the u|ser is g|
|00004fc0| 69 76 65 6e 20 6d 6f 72 | 65 20 69 6e 66 6f 72 6d |iven mor|e inform|
|00004fd0| 61 74 69 6f 6e 20 61 6e | 64 20 72 65 70 72 6f 6d |ation an|d reprom|
|00004fe0| 70 74 65 64 2e 0d 00 0d | 00 0d 0a 0d 00 0d 00 0d |pted....|........|
|00004ff0| 0a 20 20 20 20 20 20 20 | 20 66 75 6e 63 74 69 6f |. | functio|
|00005000| 6e 20 43 55 52 52 45 4e | 54 5f 53 49 5a 45 5f 45 |n CURREN|T_SIZE_E|
|00005010| 53 54 20 72 65 74 75 72 | 6e 20 69 6e 74 65 67 65 |ST retur|n intege|
|00005020| 72 20 69 73 20 0d 00 0d | 00 0d 0a 20 20 20 20 20 |r is ...|... |
|00005030| 20 20 20 20 20 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | ---|--------|
|00005040| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005050| 2d 2d 2d 2d 2d 2d 0d 00 | 0d 00 0d 0a 20 20 20 20 |------..|.... |
|00005060| 20 20 20 20 20 20 2d 2d | 20 43 75 72 72 65 6e 74 | --| Current|
|00005070| 20 53 69 7a 65 20 45 73 | 74 69 6d 61 74 65 0d 00 | Size Es|timate..|
|00005080| 0d 00 0d 0a 20 20 20 20 | 20 20 20 20 20 20 2d 2d |.... | --|
|00005090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000050a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|000050b0| 00 0d 00 0d 0a 20 20 20 | 20 20 20 20 20 61 6e 5f |..... | an_|
|000050c0| 69 6e 74 65 67 65 72 20 | 3a 20 69 6e 74 65 67 65 |integer |: intege|
|000050d0| 72 20 72 61 6e 67 65 20 | 30 2e 2e 39 39 5f 39 39 |r range |0..99_99|
|000050e0| 39 3b 0d 00 0d 00 0d 0a | 0d 00 0d 00 0d 0a 20 20 |9;......|...... |
|000050f0| 20 20 20 20 20 20 62 65 | 67 69 6e 0d 00 0d 00 0d | be|gin.....|
|00005100| 0a 20 20 20 20 20 20 20 | 20 20 20 76 61 6c 69 64 |. | valid|
|00005110| 5f 69 6e 70 75 74 20 3a | 3d 20 66 61 6c 73 65 3b |_input :|= false;|
|00005120| 0d 00 0d 00 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|00005130| 77 68 69 6c 65 20 6e 6f | 74 20 76 61 6c 69 64 5f |while no|t valid_|
|00005140| 69 6e 70 75 74 20 6c 6f | 6f 70 0d 00 0d 00 0d 0a |input lo|op......|
|00005150| 20 20 20 20 20 20 20 20 | 20 20 20 20 62 65 67 69 | | begi|
|00005160| 6e 0d 00 0d 00 0d 0a 20 | 20 20 20 20 20 20 20 20 |n...... | |
|00005170| 20 20 20 20 20 2d 2d 20 | 61 73 6b 20 61 62 62 72 | -- |ask abbr|
|00005180| 65 76 69 61 74 65 64 20 | 71 75 65 73 74 69 6f 6e |eviated |question|
|00005190| 0d 00 0d 00 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|000051a0| 20 20 20 20 70 75 74 20 | 28 22 20 43 75 72 72 65 | put |(" Curre|
|000051b0| 6e 74 20 53 69 7a 65 20 | 3a 20 22 29 3b 0d 00 0d |nt Size |: ");...|
|000051c0| 00 0d 0a 0d 00 0d 00 0d | 0a 20 20 20 20 20 20 20 |........|. |
|000051d0| 20 20 20 20 20 20 20 2d | 2d 20 6b 65 65 70 20 61 | -|- keep a|
|000051e0| 73 6b 69 6e 67 20 71 75 | 65 73 74 69 6f 6e 20 69 |sking qu|estion i|
|000051f0| 66 20 74 68 65 20 75 73 | 65 72 20 68 69 74 73 20 |f the us|er hits |
|00005200| 3c 63 72 3e 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 |<cr>....|.. |
|00005210| 20 20 20 20 20 20 20 20 | 77 68 69 6c 65 20 65 6e | |while en|
|00005220| 64 5f 6f 66 5f 6c 69 6e | 65 20 6c 6f 6f 70 20 0d |d_of_lin|e loop .|
|00005230| 00 0d 00 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |..... | |
|00005240| 20 20 20 20 20 73 6b 69 | 70 5f 6c 69 6e 65 3b 0d | ski|p_line;.|
|00005250| 00 0d 00 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |..... | |
|00005260| 20 20 20 20 20 6e 65 77 | 5f 6c 69 6e 65 3b 0d 00 | new|_line;..|
|00005270| 0d 00 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|00005280| 20 20 20 20 70 75 74 5f | 6c 69 6e 65 28 22 20 57 | put_|line(" W|
|00005290| 68 61 74 20 69 73 20 74 | 68 65 20 63 75 72 72 65 |hat is t|he curre|
|000052a0| 6e 74 20 65 73 74 69 6d | 61 74 65 20 6f 66 20 74 |nt estim|ate of t|
|000052b0| 68 65 20 65 6c 65 6d 65 | 6e 74 20 73 69 7a 65 3f |he eleme|nt size?|
|000052c0| 22 29 3b 0d 00 0d 00 0d | 0a 20 20 20 20 20 20 20 |");.....|. |
|000052d0| 20 20 20 20 20 20 20 20 | 20 70 75 74 5f 6c 69 6e | | put_lin|
|000052e0| 65 28 22 20 45 6e 74 65 | 72 20 61 6e 20 69 6e 74 |e(" Ente|r an int|
|000052f0| 65 67 65 72 20 69 6e 20 | 74 68 65 20 72 61 6e 67 |eger in |the rang|
|00005300| 65 20 30 20 74 6f 20 39 | 39 5f 39 39 39 20 20 22 |e 0 to 9|9_999 "|
|00005310| 29 3b 0d 00 0d 00 0d 0a | 20 20 20 20 20 20 20 20 |);......| |
|00005320| 20 20 20 20 20 20 20 20 | 6e 65 77 5f 6c 69 6e 65 | |new_line|
|00005330| 3b 0d 00 0d 00 0d 0a 20 | 20 20 20 20 20 20 20 20 |;...... | |
|00005340| 20 20 20 20 20 20 20 70 | 75 74 20 28 22 20 43 75 | p|ut (" Cu|
|00005350| 72 72 65 6e 74 20 53 69 | 7a 65 20 3a 20 22 29 3b |rrent Si|ze : ");|
|00005360| 0d 00 0d 00 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|00005370| 20 20 20 20 65 6e 64 20 | 6c 6f 6f 70 3b 0d 00 0d | end |loop;...|
|00005380| 00 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |... | |
|00005390| 20 67 65 74 28 20 61 6e | 5f 69 6e 74 65 67 65 72 | get( an|_integer|
|000053a0| 20 29 3b 20 73 6b 69 70 | 5f 6c 69 6e 65 3b 0d 00 | ); skip|_line;..|
|000053b0| 0d 00 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|000053c0| 20 20 6e 65 77 5f 6c 69 | 6e 65 28 32 29 3b 0d 00 | new_li|ne(2);..|
|000053d0| 0d 00 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|000053e0| 20 20 76 61 6c 69 64 5f | 69 6e 70 75 74 20 3a 3d | valid_|input :=|
|000053f0| 20 74 72 75 65 3b 0d 00 | 0d 00 0d 0a 20 20 20 20 | true;..|.... |
|00005400| 20 20 20 20 20 20 20 20 | 65 78 63 65 70 74 69 6f | |exceptio|
|00005410| 6e 0d 00 0d 00 0d 0a 20 | 20 20 20 20 20 20 20 20 |n...... | |
|00005420| 20 20 20 20 20 77 68 65 | 6e 20 6f 74 68 65 72 73 | whe|n others|
|00005430| 20 3d 3e 20 20 0d 00 0d | 00 0d 0a 20 20 20 20 20 | => ...|... |
|00005440| 20 20 20 20 20 20 20 20 | 20 20 20 73 6b 69 70 5f | | skip_|
|00005450| 6c 69 6e 65 3b 0d 00 0d | 00 0d 0a 20 20 20 20 20 |line;...|... |
|00005460| 20 20 20 20 20 20 20 20 | 20 20 20 6e 65 77 5f 6c | | new_l|
|00005470| 69 6e 65 3b 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 |ine;....|.. |
|00005480| 20 20 20 20 20 20 20 20 | 20 20 70 75 74 5f 6c 69 | | put_li|
|00005490| 6e 65 28 22 20 57 68 61 | 74 20 69 73 20 74 68 65 |ne(" Wha|t is the|
|000054a0| 20 63 75 72 72 65 6e 74 | 20 65 73 74 69 6d 61 74 | current| estimat|
|000054b0| 65 20 6f 66 20 74 68 65 | 20 65 6c 65 6d 65 6e 74 |e of the| element|
|000054c0| 20 73 69 7a 65 3f 22 29 | 3b 0d 00 0d 00 0d 0a 20 | size?")|;...... |
|000054d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 70 | | p|
|000054e0| 75 74 5f 6c 69 6e 65 28 | 22 20 45 6e 74 65 72 20 |ut_line(|" Enter |
|000054f0| 61 6e 20 69 6e 74 65 67 | 65 72 20 69 6e 20 74 68 |an integ|er in th|
|00005500| 65 20 72 61 6e 67 65 20 | 30 20 74 6f 20 39 39 5f |e range |0 to 99_|
|00005510| 39 39 39 20 20 22 29 3b | 0d 00 0d 00 0d 0a 20 20 |999 ");|...... |
|00005520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6e 65 | | ne|
|00005530| 77 5f 6c 69 6e 65 3b 0d | 00 0d 00 0d 0a 20 20 20 |w_line;.|..... |
|00005540| 20 20 20 20 20 20 20 20 | 20 65 6e 64 3b 0d 00 0d | | end;...|
|00005550| 00 0d 0a 20 20 20 20 20 | 20 20 20 20 20 65 6e 64 |... | end|
|00005560| 20 6c 6f 6f 70 3b 0d 00 | 0d 00 0d 0a 20 20 20 20 | loop;..|.... |
|00005570| 20 20 20 20 20 20 72 65 | 74 75 72 6e 20 61 6e 5f | re|turn an_|
|00005580| 69 6e 74 65 67 65 72 3b | 0d 00 0d 00 0d 0a 20 20 |integer;|...... |
|00005590| 20 20 20 20 20 20 65 6e | 64 20 43 55 52 52 45 4e | en|d CURREN|
|000055a0| 54 5f 53 49 5a 45 5f 45 | 53 54 3b 0d 00 0d 00 0d |T_SIZE_E|ST;.....|
|000055b0| 0a 0d 00 0d 00 0d 0a 0c | 20 20 20 20 20 20 20 20 |........| |
|000055c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000055d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000055e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000055f0| 20 20 20 20 20 20 20 20 | 50 61 67 65 20 39 0d 00 | |Page 9..|
|00005600| 0d 00 0d 0a 0d 00 0d 00 | 0d 0a 0d 00 0d 00 0d 0a |........|........|
|00005610| 20 20 20 20 20 20 33 2e | 31 31 20 20 55 73 69 6e | 3.|11 Usin|
|00005620| 67 20 45 78 63 65 70 74 | 69 6f 6e 73 20 57 69 74 |g Except|ions Wit|
|00005630| 68 20 3c 63 72 3e 3d 64 | 65 66 61 75 6c 74 20 56 |h <cr>=d|efault V|
|00005640| 61 6c 75 65 2c 20 27 3f | 27 3d 6d 6f 72 65 20 49 |alue, '?|'=more I|
|00005650| 6e 66 6f 72 6d 61 74 69 | 6f 6e 0d 00 0d 00 0d 0a |nformati|on......|
|00005660| 0d 00 0d 00 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|00005670| 20 54 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 64 | This fu|nction d|
|00005680| 65 6d 6f 6e 73 74 72 61 | 74 65 73 20 68 6f 77 20 |emonstra|tes how |
|00005690| 61 20 64 65 66 61 75 6c | 74 20 76 61 6c 75 65 20 |a defaul|t value |
|000056a0| 63 61 6e 20 62 65 20 61 | 73 73 69 67 6e 65 64 20 |can be a|ssigned |
|000056b0| 74 6f 0d 00 0d 00 0d 0a | 20 20 20 20 20 20 74 68 |to......| th|
|000056c0| 65 20 20 76 61 72 69 61 | 62 6c 65 20 20 62 65 69 |e varia|ble bei|
|000056d0| 6e 67 20 20 70 72 6f 6d | 70 74 65 64 20 20 66 6f |ng prom|pted fo|
|000056e0| 72 2c 20 69 66 20 74 68 | 65 20 75 73 65 72 20 70 |r, if th|e user p|
|000056f0| 72 65 73 73 65 73 20 3c | 63 72 3e 2e 20 20 49 66 |resses <|cr>. If|
|00005700| 20 74 68 65 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 | the....|.. |
|00005710| 75 73 65 72 20 65 6e 74 | 65 72 73 20 61 6e 20 69 |user ent|ers an i|
|00005720| 6e 76 61 6c 69 64 20 6e | 75 6d 62 65 72 2c 20 6d |nvalid n|umber, m|
|00005730| 6f 72 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ore info|rmation |
|00005740| 69 73 20 64 69 73 70 6c | 61 79 65 64 20 61 6e 64 |is displ|ayed and|
|00005750| 20 61 20 6e 65 77 0d 00 | 0d 00 0d 0a 20 20 20 20 | a new..|.... |
|00005760| 20 20 70 72 6f 6d 70 74 | 20 61 70 70 65 61 72 73 | prompt| appears|
|00005770| 2e 0d 00 0d 00 0d 0a 0d | 00 0d 00 0d 0a 20 20 20 |........|..... |
|00005780| 20 20 20 20 20 66 75 6e | 63 74 69 6f 6e 20 4f 52 | fun|ction OR|
|00005790| 49 47 5f 53 49 5a 45 5f | 45 53 54 20 28 64 65 66 |IG_SIZE_|EST (def|
|000057a0| 61 75 6c 74 20 3a 20 69 | 6e 20 69 6e 74 65 67 65 |ault : i|n intege|
|000057b0| 72 20 3a 3d 20 30 29 20 | 72 65 74 75 72 6e 20 69 |r := 0) |return i|
|000057c0| 6e 74 65 67 65 72 20 69 | 73 0d 00 0d 00 0d 0a 20 |nteger i|s...... |
|000057d0| 20 20 20 20 20 20 20 20 | 20 2d 2d 2d 2d 2d 2d 2d | | -------|
|000057e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000057f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0d 00 0d 00 0d 0a |--------|--......|
|00005800| 20 20 20 20 20 20 20 20 | 20 20 2d 2d 20 4f 72 69 | | -- Ori|
|00005810| 67 69 6e 61 6c 20 53 69 | 7a 65 20 45 73 74 69 6d |ginal Si|ze Estim|
|00005820| 61 74 65 0d 00 0d 00 0d | 0a 20 20 20 20 20 20 20 |ate.....|. |
|00005830| 20 20 20 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | -----|--------|
|00005840| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005850| 2d 2d 2d 2d 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 |----....|.. |
|00005860| 20 20 61 6e 5f 69 6e 74 | 65 67 65 72 20 3a 20 69 | an_int|eger : i|
|00005870| 6e 74 65 67 65 72 20 72 | 61 6e 67 65 20 30 2e 2e |nteger r|ange 0..|
|00005880| 39 39 5f 39 39 39 3b 0d | 00 0d 00 0d 0a 0d 00 0d |99_999;.|........|
|00005890| 00 0d 0a 20 20 20 20 20 | 20 20 20 62 65 67 69 6e |... | begin|
|000058a0| 0d 00 0d 00 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|000058b0| 6c 6f 6f 70 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 |loop....|.. |
|000058c0| 20 20 20 20 20 20 62 65 | 67 69 6e 0d 00 0d 00 0d | be|gin.....|
|000058d0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2d |. | -|
|000058e0| 2d 20 61 73 6b 20 61 62 | 62 72 65 76 69 61 74 65 |- ask ab|breviate|
|000058f0| 64 20 71 75 65 73 74 69 | 6f 6e 0d 00 0d 00 0d 0a |d questi|on......|
|00005900| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 70 75 | | pu|
|00005910| 74 20 28 22 20 4f 72 69 | 67 69 6e 61 6c 20 73 69 |t (" Ori|ginal si|
|00005920| 7a 65 20 28 20 3c 63 72 | 3e 20 3d 20 63 75 72 72 |ze ( <cr|> = curr|
|00005930| 65 6e 74 20 73 69 7a 65 | 29 20 3a 20 22 29 3b 0d |ent size|) : ");.|
|00005940| 00 0d 00 0d 0a 0d 00 0d | 00 0d 0a 20 20 20 20 20 |........|... |
|00005950| 20 20 20 20 20 20 20 20 | 20 69 66 20 65 6e 64 5f | | if end_|
|00005960| 6f 66 5f 6c 69 6e 65 20 | 74 68 65 6e 20 2d 2d 20 |of_line |then -- |
|00005970| 64 65 66 61 75 6c 74 0d | 00 0d 00 0d 0a 20 20 20 |default.|..... |
|00005980| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 73 6b 69 | | ski|
|00005990| 70 5f 6c 69 6e 65 3b 0d | 00 0d 00 0d 0a 20 20 20 |p_line;.|..... |
|000059a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 6e 65 77 | | new|
|000059b0| 5f 6c 69 6e 65 28 32 29 | 3b 0d 00 0d 00 0d 0a 20 |_line(2)|;...... |
|000059c0| 20 20 20 20 20 20 20 20 | 20 72 65 74 75 72 6e 20 | | return |
|000059d0| 64 65 66 61 75 6c 74 3b | 0d 00 0d 00 0d 0a 20 20 |default;|...... |
|000059e0| 20 20 20 20 20 20 65 6e | 64 20 69 66 3b 0d 00 0d | en|d if;...|
|000059f0| 00 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |... | |
|00005a00| 20 67 65 74 28 20 61 6e | 5f 69 6e 74 65 67 65 72 | get( an|_integer|
|00005a10| 20 29 3b 20 73 6b 69 70 | 5f 6c 69 6e 65 3b 0d 00 | ); skip|_line;..|
|00005a20| 0d 00 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|00005a30| 20 20 6e 65 77 5f 6c 69 | 6e 65 28 32 29 3b 0d 00 | new_li|ne(2);..|
|00005a40| 0d 00 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|00005a50| 20 20 72 65 74 75 72 6e | 20 61 6e 5f 69 6e 74 65 | return| an_inte|
|00005a60| 67 65 72 3b 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 |ger;....|.. |
|00005a70| 20 20 20 20 20 20 65 78 | 63 65 70 74 69 6f 6e 0d | ex|ception.|
|00005a80| 00 0d 00 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |..... | |
|00005a90| 20 20 20 77 68 65 6e 20 | 6f 74 68 65 72 73 20 3d | when |others =|
|00005aa0| 3e 20 20 0d 00 0d 00 0d | 0a 20 20 20 20 20 20 20 |> .....|. |
|00005ab0| 20 20 20 20 20 20 20 20 | 20 73 6b 69 70 5f 6c 69 | | skip_li|
|00005ac0| 6e 65 3b 0d 00 0d 00 0d | 0a 20 20 20 20 20 20 20 |ne;.....|. |
|00005ad0| 20 20 20 20 20 20 20 20 | 20 6e 65 77 5f 6c 69 6e | | new_lin|
|00005ae0| 65 28 32 29 3b 0d 00 0d | 00 0d 0a 20 20 20 20 20 |e(2);...|... |
|00005af0| 20 20 20 20 20 20 20 20 | 20 20 20 70 75 74 5f 6c | | put_l|
|00005b00| 69 6e 65 28 22 20 57 68 | 61 74 20 69 73 20 74 68 |ine(" Wh|at is th|
|00005b10| 65 20 6f 72 69 67 69 6e | 61 6c 20 65 73 74 69 6d |e origin|al estim|
|00005b20| 61 74 65 20 6f 66 20 74 | 68 65 20 65 6c 65 6d 65 |ate of t|he eleme|
|00005b30| 6e 74 20 73 69 7a 65 3f | 22 29 3b 0d 00 0d 00 0d |nt size?|");.....|
|00005b40| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00005b50| 20 70 75 74 5f 6c 69 6e | 65 28 22 20 45 6e 74 65 | put_lin|e(" Ente|
|00005b60| 72 20 61 6e 20 69 6e 74 | 65 67 65 72 20 69 6e 20 |r an int|eger in |
|00005b70| 74 68 65 20 72 61 6e 67 | 65 20 30 20 74 6f 20 39 |the rang|e 0 to 9|
|00005b80| 39 5f 39 39 39 20 20 22 | 29 3b 0d 00 0d 00 0d 0a |9_999 "|);......|
|00005b90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005ba0| 6e 65 77 5f 6c 69 6e 65 | 3b 0d 00 0d 00 0d 0a 20 |new_line|;...... |
|00005bb0| 20 20 20 20 20 20 20 20 | 20 20 20 65 6e 64 3b 0d | | end;.|
|00005bc0| 00 0d 00 0d 0a 20 20 20 | 20 20 20 20 20 20 20 65 |..... | e|
|00005bd0| 6e 64 20 6c 6f 6f 70 3b | 0d 00 0d 00 0d 0a 20 20 |nd loop;|...... |
|00005be0| 20 20 20 20 20 20 65 6e | 64 20 4f 52 49 47 5f 53 | en|d ORIG_S|
|00005bf0| 49 5a 45 5f 45 53 54 3b | 0d 00 0d 00 0d 0a 0d 00 |IZE_EST;|........|
|00005c00| 0d 00 0d 0a 0c 20 20 20 | 20 20 20 20 20 20 20 20 |..... | |
|00005c10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005c20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005c40| 20 20 20 20 50 61 67 65 | 20 31 30 0d 00 0d 00 0d | Page| 10.....|
|00005c50| 0a 0d 00 0d 00 0d 0a 0d | 00 0d 00 0d 0a 20 20 20 |........|..... |
|00005c60| 20 20 20 33 2e 31 32 20 | 20 55 73 69 6e 67 20 45 | 3.12 | Using E|
|00005c70| 78 63 65 70 74 69 6f 6e | 73 20 57 69 74 68 20 3c |xception|s With <|
|00005c80| 63 72 3e 3d 64 65 66 61 | 75 6c 74 20 56 61 6c 75 |cr>=defa|ult Valu|
|00005c90| 65 0d 00 0d 00 0d 0a 0d | 00 0d 00 0d 0a 20 20 20 |e.......|..... |
|00005ca0| 20 20 20 20 20 20 20 20 | 54 68 69 73 20 66 75 6e | |This fun|
|00005cb0| 63 74 69 6f 6e 20 64 65 | 6d 6f 6e 73 74 72 61 74 |ction de|monstrat|
|00005cc0| 65 73 20 68 6f 77 20 74 | 68 65 20 75 73 65 72 20 |es how t|he user |
|00005cd0| 63 61 6e 20 62 65 20 20 | 70 72 6f 6d 70 74 65 64 |can be |prompted|
|00005ce0| 20 20 66 6f 72 20 20 61 | 6e 0d 00 0d 00 0d 0a 20 | for a|n...... |
|00005cf0| 20 20 20 20 20 69 6e 74 | 65 67 65 72 20 61 6e 64 | int|eger and|
|00005d00| 20 74 68 65 20 6f 6c 64 | 20 6f 72 20 64 65 66 61 | the old| or defa|
|00005d10| 75 6c 74 20 76 61 6c 75 | 65 20 69 73 20 64 69 73 |ult valu|e is dis|
|00005d20| 70 6c 61 79 65 64 20 74 | 6f 20 68 69 6d 2e 0d 00 |played t|o him...|
|00005d30| 0d 00 0d 0a 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 |........|.. |
|00005d40| 20 20 66 75 6e 63 74 69 | 6f 6e 20 55 50 44 41 54 | functi|on UPDAT|
|00005d50| 45 5f 43 55 52 52 45 4e | 54 5f 53 49 5a 45 20 28 |E_CURREN|T_SIZE (|
|00005d60| 6f 6c 64 5f 73 69 7a 65 | 20 3a 20 69 6e 20 69 6e |old_size| : in in|
|00005d70| 74 65 67 65 72 29 20 72 | 65 74 75 72 6e 20 69 6e |teger) r|eturn in|
|00005d80| 74 65 67 65 72 20 69 73 | 20 0d 00 0d 00 0d 0a 20 |teger is| ...... |
|00005d90| 20 20 20 20 20 20 20 20 | 20 61 6e 5f 69 6e 74 65 | | an_inte|
|00005da0| 67 65 72 20 3a 20 69 6e | 74 65 67 65 72 20 72 61 |ger : in|teger ra|
|00005db0| 6e 67 65 20 30 2e 2e 39 | 39 5f 39 39 39 3b 0d 00 |nge 0..9|9_999;..|
|00005dc0| 0d 00 0d 0a 20 20 20 20 | 20 20 20 20 20 20 0d 00 |.... | ..|
|00005dd0| 0d 00 0d 0a 20 20 20 20 | 20 20 20 20 62 65 67 69 |.... | begi|
|00005de0| 6e 0d 00 0d 00 0d 0a 20 | 20 20 20 20 20 20 20 20 |n...... | |
|00005df0| 20 6c 6f 6f 70 0d 00 0d | 00 0d 0a 20 20 20 20 20 | loop...|... |
|00005e00| 20 20 20 20 20 20 20 62 | 65 67 69 6e 0d 00 0d 00 | b|egin....|
|00005e10| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00005e20| 2d 2d 20 61 73 6b 20 61 | 62 62 72 65 76 69 61 74 |-- ask a|bbreviat|
|00005e30| 65 64 20 71 75 65 73 74 | 69 6f 6e 0d 00 0d 00 0d |ed quest|ion.....|
|00005e40| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 73 |. | s|
|00005e50| 65 74 5f 63 6f 6c 28 35 | 31 29 3b 20 70 75 74 20 |et_col(5|1); put |
|00005e60| 28 22 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 73 |(" the c|urrent s|
|00005e70| 69 7a 65 20 3d 20 22 29 | 3b 20 0d 00 0d 00 0d 0a |ize = ")|; ......|
|00005e80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 70 75 | | pu|
|00005e90| 74 28 6f 6c 64 5f 73 69 | 7a 65 2c 31 29 3b 20 6e |t(old_si|ze,1); n|
|00005ea0| 65 77 5f 6c 69 6e 65 3b | 0d 00 0d 00 0d 0a 20 20 |ew_line;|...... |
|00005eb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 70 75 74 20 | | put |
|00005ec0| 28 22 20 57 68 61 74 20 | 64 6f 20 79 6f 75 20 77 |(" What |do you w|
|00005ed0| 61 6e 74 20 74 6f 20 63 | 68 61 6e 67 65 20 69 74 |ant to c|hange it|
|00005ee0| 20 74 6f 3f 20 5b 3c 63 | 72 3e 20 3d 20 6e 6f 20 | to? [<c|r> = no |
|00005ef0| 63 68 61 6e 67 65 5d 20 | 22 29 3b 0d 00 0d 00 0d |change] |");.....|
|00005f00| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 73 |. | s|
|00005f10| 65 74 5f 63 6f 6c 28 36 | 39 29 3b 20 70 75 74 28 |et_col(6|9); put(|
|00005f20| 22 3a 20 22 29 3b 0d 00 | 0d 00 0d 0a 0d 00 0d 00 |": ");..|........|
|00005f30| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00005f40| 69 66 20 65 6e 64 5f 6f | 66 5f 6c 69 6e 65 20 74 |if end_o|f_line t|
|00005f50| 68 65 6e 20 20 2d 2d 20 | 64 6f 6e 27 74 20 63 68 |hen -- |don't ch|
|00005f60| 61 6e 67 65 20 74 68 65 | 20 76 61 6c 75 65 0d 00 |ange the| value..|
|00005f70| 0d 00 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|00005f80| 20 20 20 20 73 6b 69 70 | 5f 6c 69 6e 65 3b 0d 00 | skip|_line;..|
|00005f90| 0d 00 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|00005fa0| 20 20 20 20 6e 65 77 5f | 6c 69 6e 65 28 32 29 3b | new_|line(2);|
|00005fb0| 0d 00 0d 00 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|00005fc0| 20 20 20 20 20 20 72 65 | 74 75 72 6e 20 6f 6c 64 | re|turn old|
|00005fd0| 5f 73 69 7a 65 3b 0d 00 | 0d 00 0d 0a 20 20 20 20 |_size;..|.... |
|00005fe0| 20 20 20 20 20 20 20 20 | 20 20 65 6c 73 65 0d 00 | | else..|
|00005ff0| 0d 00 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|00006000| 20 20 20 20 67 65 74 28 | 20 61 6e 5f 69 6e 74 65 | get(| an_inte|
|00006010| 67 65 72 20 29 3b 20 73 | 6b 69 70 5f 6c 69 6e 65 |ger ); s|kip_line|
|00006020| 3b 0d 00 0d 00 0d 0a 20 | 20 20 20 20 20 20 20 20 |;...... | |
|00006030| 20 20 20 20 20 20 20 6e | 65 77 5f 6c 69 6e 65 28 | n|ew_line(|
|00006040| 32 29 3b 0d 00 0d 00 0d | 0a 20 20 20 20 20 20 20 |2);.....|. |
|00006050| 20 20 20 20 20 20 20 20 | 20 72 65 74 75 72 6e 20 | | return |
|00006060| 61 6e 5f 69 6e 74 65 67 | 65 72 3b 0d 00 0d 00 0d |an_integ|er;.....|
|00006070| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 65 |. | e|
|00006080| 6e 64 20 69 66 3b 0d 00 | 0d 00 0d 0a 20 20 20 20 |nd if;..|.... |
|00006090| 20 20 20 20 20 20 20 20 | 65 78 63 65 70 74 69 6f | |exceptio|
|000060a0| 6e 0d 00 0d 00 0d 0a 20 | 20 20 20 20 20 20 20 20 |n...... | |
|000060b0| 20 20 20 20 20 77 68 65 | 6e 20 6f 74 68 65 72 73 | whe|n others|
|000060c0| 20 3d 3e 20 20 73 6b 69 | 70 5f 6c 69 6e 65 3b 0d | => ski|p_line;.|
|000060d0| 00 0d 00 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |..... | |
|000060e0| 20 20 20 20 20 70 75 74 | 28 22 20 54 68 61 74 20 | put|(" That |
|000060f0| 77 61 73 20 6e 6f 74 20 | 61 20 76 61 6c 69 64 20 |was not |a valid |
|00006100| 76 61 6c 75 65 2e 20 22 | 29 3b 0d 00 0d 00 0d 0a |value. "|);......|
|00006110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006120| 70 75 74 5f 6c 69 6e 65 | 28 22 20 54 72 79 20 73 |put_line|(" Try s|
|00006130| 6f 6d 65 74 68 69 6e 67 | 20 69 6e 20 74 68 65 20 |omething| in the |
|00006140| 72 61 6e 67 65 20 30 2e | 2e 39 39 5f 39 39 39 2e |range 0.|.99_999.|
|00006150| 20 22 29 3b 0d 00 0d 00 | 0d 0a 20 20 20 20 20 20 | ");....|.. |
|00006160| 20 20 20 20 20 20 20 20 | 20 20 6e 65 77 5f 6c 69 | | new_li|
|00006170| 6e 65 3b 0d 00 0d 00 0d | 0a 20 20 20 20 20 20 20 |ne;.....|. |
|00006180| 20 20 20 20 20 65 6e 64 | 3b 0d 00 0d 00 0d 0a 20 | end|;...... |
|00006190| 20 20 20 20 20 20 20 20 | 20 65 6e 64 20 6c 6f 6f | | end loo|
|000061a0| 70 3b 0d 00 0d 00 0d 0a | 20 20 20 20 20 20 20 20 |p;......| |
|000061b0| 65 6e 64 20 55 50 44 41 | 54 45 5f 43 55 52 52 45 |end UPDA|TE_CURRE|
|000061c0| 4e 54 5f 53 49 5a 45 3b | 0d 00 0d 00 0d 0a 0d 00 |NT_SIZE;|........|
|000061d0| 0d 00 0d 0a | |.... | |
+--------+-------------------------+-------------------------+--------+--------+