home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1997-04-02 | 3.9 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Wed Apr 2 12:30:09 1997, modified Wed Apr 2 12:30:09 1997, creator 'CWIE', type ASCII, 3237 bytes "ooftst33.cpp" , at 0xd25 442 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 6f 6f 66 74 73 74 | 33 33 2e 63 70 70 00 00 |..ooftst|33.cpp..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 0c a5 00 | 00 01 ba af 68 48 21 af |........|....hH!.|
|00000060| 68 48 21 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |hH!.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ff 3d 00 00 |........|.....=..|
|00000080| 2f 2f 20 43 6f 70 79 72 | 69 67 68 74 20 31 39 39 |// Copyr|ight 199|
|00000090| 36 20 41 2e 44 2e 20 53 | 6f 66 74 77 61 72 65 2e |6 A.D. S|oftware.|
|000000a0| 20 41 6c 6c 20 52 69 67 | 68 74 73 20 52 65 73 65 | All Rig|hts Rese|
|000000b0| 72 76 65 64 0d 0d 2f 2f | 20 4f 4f 46 54 45 53 54 |rved..//| OOFTEST|
|000000c0| 33 33 0d 0d 2f 2f 20 53 | 69 6d 70 6c 65 20 73 74 |33..// S|imple st|
|000000d0| 72 65 61 6d 20 49 2f 4f | 20 69 73 20 75 73 65 64 |ream I/O| is used|
|000000e0| 20 74 6f 20 69 6e 74 65 | 72 61 63 74 20 77 69 74 | to inte|ract wit|
|000000f0| 68 20 74 68 65 20 75 73 | 65 72 2e 0d 2f 2f 20 74 |h the us|er..// t|
|00000100| 6f 20 64 65 6d 6f 6e 73 | 74 72 61 74 65 20 75 73 |o demons|trate us|
|00000110| 65 20 6f 66 20 63 61 6c | 63 75 6c 61 74 65 64 20 |e of cal|culated |
|00000120| 66 69 65 6c 64 73 20 61 | 6e 64 20 64 61 74 65 20 |fields a|nd date |
|00000130| 66 6f 72 6d 61 74 20 6d | 61 73 6b 73 0d 0d 23 69 |format m|asks..#i|
|00000140| 6e 63 6c 75 64 65 20 22 | 6f 6f 66 69 6c 65 2e 68 |nclude "|oofile.h|
|00000150| 22 0d 0d 63 6c 61 73 73 | 20 6f 76 65 72 64 75 65 |"..class| overdue|
|00000160| 43 61 6c 63 20 3a 20 70 | 75 62 6c 69 63 20 64 62 |Calc : p|ublic db|
|00000170| 42 6f 6f 6c 43 61 6c 63 | 75 6c 61 74 6f 72 7b 0d |BoolCalc|ulator{.|
|00000180| 70 75 62 6c 69 63 3a 0d | 20 20 20 76 69 72 74 75 |public:.| virtu|
|00000190| 61 6c 20 64 62 43 61 6c | 63 75 6c 61 74 6f 72 2a |al dbCal|culator*|
|000001a0| 20 63 6c 6f 6e 65 28 29 | 20 63 6f 6e 73 74 20 7b | clone()| const {|
|000001b0| 72 65 74 75 72 6e 20 6e | 65 77 20 6f 76 65 72 64 |return n|ew overd|
|000001c0| 75 65 43 61 6c 63 28 2a | 74 68 69 73 29 3b 7d 3b |ueCalc(*|this);};|
|000001d0| 0d 20 20 20 76 69 72 74 | 75 61 6c 20 62 6f 6f 6c |. virt|ual bool|
|000001e0| 09 63 61 6c 63 28 63 6f | 6e 73 74 20 64 62 42 6f |.calc(co|nst dbBo|
|000001f0| 6f 6c 2a 29 3b 0d 7d 3b | 0d 0d 0d 63 6c 61 73 73 |ol*);.};|...class|
|00000200| 20 73 74 61 74 75 73 43 | 61 6c 63 20 3a 20 70 75 | statusC|alc : pu|
|00000210| 62 6c 69 63 20 64 62 43 | 68 61 72 43 61 6c 63 75 |blic dbC|harCalcu|
|00000220| 6c 61 74 6f 72 7b 0d 70 | 75 62 6c 69 63 3a 0d 20 |lator{.p|ublic:. |
|00000230| 20 20 76 69 72 74 75 61 | 6c 20 64 62 43 61 6c 63 | virtua|l dbCalc|
|00000240| 75 6c 61 74 6f 72 2a 20 | 63 6c 6f 6e 65 28 29 20 |ulator* |clone() |
|00000250| 63 6f 6e 73 74 20 7b 72 | 65 74 75 72 6e 20 6e 65 |const {r|eturn ne|
|00000260| 77 20 73 74 61 74 75 73 | 43 61 6c 63 28 2a 74 68 |w status|Calc(*th|
|00000270| 69 73 29 3b 7d 3b 0d 20 | 20 20 76 69 72 74 75 61 |is);};. | virtua|
|00000280| 6c 20 63 6f 6e 73 74 20 | 63 68 61 72 2a 09 63 61 |l const |char*.ca|
|00000290| 6c 63 28 63 6f 6e 73 74 | 20 64 62 43 68 61 72 2a |lc(const| dbChar*|
|000002a0| 29 3b 0d 7d 3b 0d 0d 0d | 0d 44 45 43 4c 41 52 45 |);.};...|.DECLARE|
|000002b0| 5f 43 4c 41 53 53 28 64 | 62 49 6e 76 6f 69 63 69 |_CLASS(d|bInvoici|
|000002c0| 6e 67 29 0d 20 20 20 20 | 20 20 20 20 64 62 55 6c |ng). | dbUl|
|000002d0| 6f 6e 67 09 09 09 49 6e | 76 6f 69 63 65 4e 75 6d |ong...In|voiceNum|
|000002e0| 62 65 72 3b 0d 20 20 20 | 20 20 20 20 20 64 62 44 |ber;. | dbD|
|000002f0| 61 74 65 09 09 09 44 61 | 74 65 44 75 65 3b 0d 20 |ate...Da|teDue;. |
|00000300| 20 20 20 20 20 20 20 0d | 20 20 20 20 20 20 20 20 | .| |
|00000310| 64 62 42 6f 6f 6c 09 20 | 20 20 20 20 20 20 20 49 |dbBool. | I|
|00000320| 73 4f 76 65 72 64 75 65 | 3b 0d 20 20 20 20 20 20 |sOverdue|;. |
|00000330| 20 20 64 62 43 68 61 72 | 20 20 20 20 20 20 20 20 | dbChar| |
|00000340| 20 20 53 74 61 74 75 73 | 3b 0d 0d 20 20 20 20 20 | Status|;.. |
|00000350| 20 20 20 64 62 49 6e 76 | 6f 69 63 69 6e 67 28 29 | dbInv|oicing()|
|00000360| 20 3a 20 64 62 54 61 62 | 6c 65 28 29 20 2c 0d 20 | : dbTab|le() ,. |
|00000370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000380| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 49 | | I|
|00000390| 6e 76 6f 69 63 65 4e 75 | 6d 62 65 72 28 22 49 6e |nvoiceNu|mber("In|
|000003a0| 76 6f 69 63 65 20 4e 75 | 6d 62 65 72 22 29 2c 0d |voice Nu|mber"),.|
|000003b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000003c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000003d0| 44 61 74 65 44 75 65 28 | 22 44 61 74 65 20 44 75 |DateDue(|"Date Du|
|000003e0| 65 22 29 2c 0d 20 20 20 | 20 20 20 20 20 20 20 20 |e"),. | |
|000003f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000400| 20 20 20 20 20 49 73 4f | 76 65 72 64 75 65 28 22 | IsO|verdue("|
|00000410| 49 73 20 4f 76 65 72 64 | 75 65 22 29 2c 0d 20 20 |Is Overd|ue"),. |
|00000420| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000430| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 53 74 | | St|
|00000440| 61 74 75 73 28 30 2c 20 | 22 53 74 61 74 75 73 22 |atus(0, |"Status"|
|00000450| 29 09 2f 2f 20 75 73 65 | 20 30 20 6c 65 6e 67 74 |).// use| 0 lengt|
|00000460| 68 20 61 73 20 64 6f 65 | 73 6e 27 74 20 6d 61 74 |h as doe|sn't mat|
|00000470| 74 65 72 20 66 6f 72 20 | 63 61 6c 63 20 66 69 65 |ter for |calc fie|
|00000480| 6c 64 0d 20 20 20 20 20 | 20 20 20 7b 0d 20 20 20 |ld. | {. |
|00000490| 20 20 20 20 20 09 49 73 | 4f 76 65 72 64 75 65 2e | .Is|Overdue.|
|000004a0| 63 61 6c 63 75 6c 61 74 | 65 57 69 74 68 28 6e 65 |calculat|eWith(ne|
|000004b0| 77 20 6f 76 65 72 64 75 | 65 43 61 6c 63 29 3b 0d |w overdu|eCalc);.|
|000004c0| 20 20 20 20 20 20 20 20 | 09 53 74 61 74 75 73 2e | |.Status.|
|000004d0| 63 61 6c 63 75 6c 61 74 | 65 57 69 74 68 28 6e 65 |calculat|eWith(ne|
|000004e0| 77 20 73 74 61 74 75 73 | 43 61 6c 63 29 3b 0d 20 |w status|Calc);. |
|000004f0| 20 20 20 20 20 20 20 09 | 73 65 74 53 6f 72 74 4f | .|setSortO|
|00000500| 72 64 65 72 28 64 62 53 | 6f 72 74 65 72 28 29 20 |rder(dbS|orter() |
|00000510| 3c 3c 20 44 61 74 65 44 | 75 65 20 3c 3c 20 49 6e |<< DateD|ue << In|
|00000520| 76 6f 69 63 65 4e 75 6d | 62 65 72 29 3b 0d 20 20 |voiceNum|ber);. |
|00000530| 20 20 20 20 20 20 7d 3b | 0d 20 20 20 20 20 20 20 | };|. |
|00000540| 20 0d 20 20 20 20 20 20 | 20 20 76 6f 69 64 20 61 | . | void a|
|00000550| 64 64 54 65 73 74 44 61 | 74 61 28 29 3b 0d 20 20 |ddTestDa|ta();. |
|00000560| 20 20 20 20 20 20 76 6f | 69 64 20 61 64 64 49 6e | vo|id addIn|
|00000570| 76 6f 69 63 65 28 75 6e | 73 69 67 6e 65 64 20 6c |voice(un|signed l|
|00000580| 6f 6e 67 20 69 6e 76 4e | 75 6d 62 65 72 2c 20 63 |ong invN|umber, c|
|00000590| 6f 6e 73 74 20 63 68 61 | 72 2a 20 64 75 65 29 3b |onst cha|r* due);|
|000005a0| 0d 7d 3b 0d 0d 0d 62 6f | 6f 6c 20 20 20 0d 6f 76 |.};...bo|ol .ov|
|000005b0| 65 72 64 75 65 43 61 6c | 63 3a 3a 63 61 6c 63 28 |erdueCal|c::calc(|
|000005c0| 63 6f 6e 73 74 20 64 62 | 42 6f 6f 6c 2a 20 74 68 |const db|Bool* th|
|000005d0| 65 46 69 65 6c 64 29 0d | 7b 0d 09 64 62 49 6e 76 |eField).|{..dbInv|
|000005e0| 6f 69 63 69 6e 67 2a 20 | 74 68 65 54 61 62 6c 65 |oicing* |theTable|
|000005f0| 20 3d 20 28 64 62 49 6e | 76 6f 69 63 69 6e 67 2a | = (dbIn|voicing*|
|00000600| 29 20 28 74 68 65 46 69 | 65 6c 64 2d 3e 66 69 65 |) (theFi|eld->fie|
|00000610| 6c 64 54 61 62 6c 65 28 | 29 29 3b 09 2f 2f 20 67 |ldTable(|));.// g|
|00000620| 65 74 20 74 68 65 20 74 | 61 62 6c 65 20 6f 6e 20 |et the t|able on |
|00000630| 77 68 69 63 68 20 77 65 | 20 6f 70 65 72 61 74 65 |which we| operate|
|00000640| 0d 09 6c 6f 6e 67 20 64 | 61 79 73 44 75 65 20 3d |..long d|aysDue =|
|00000650| 20 6f 6f 66 44 61 74 65 | 28 22 37 74 68 20 4d 61 | oofDate|("7th Ma|
|00000660| 79 20 31 39 39 36 22 29 | 20 2d 20 74 68 65 54 61 |y 1996")| - theTa|
|00000670| 62 6c 65 2d 3e 44 61 74 | 65 44 75 65 3b 0d 09 62 |ble->Dat|eDue;..b|
|00000680| 6f 6f 6c 20 72 65 74 20 | 3d 20 64 61 79 73 44 75 |ool ret |= daysDu|
|00000690| 65 20 3e 20 33 31 3b 20 | 20 0d 2f 2f 20 6e 6f 72 |e > 31; | .// nor|
|000006a0| 6d 61 6c 6c 79 20 77 6f | 75 6c 64 20 75 73 65 20 |mally wo|uld use |
|000006b0| 61 20 63 61 6c 63 75 6c | 61 74 69 6f 6e 20 6c 69 |a calcul|ation li|
|000006c0| 6b 65 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ke the f|ollowing|
|000006d0| 2c 20 62 75 74 20 77 65 | 27 76 65 20 66 69 78 65 |, but we|'ve fixe|
|000006e0| 64 20 61 20 64 61 74 65 | 0d 2f 2f 20 74 6f 20 6d |d a date|.// to m|
|000006f0| 61 6b 65 20 6f 75 72 20 | 74 65 73 74 20 72 65 73 |ake our |test res|
|00000700| 75 6c 74 73 20 70 72 65 | 64 69 63 74 61 62 6c 65 |ults pre|dictable|
|00000710| 0d 2f 2f 09 62 6f 6f 6c | 20 72 65 74 20 3d 20 28 |.//.bool| ret = (|
|00000720| 74 68 65 54 61 62 6c 65 | 2d 3e 44 61 74 65 44 75 |theTable|->DateDu|
|00000730| 65 20 2d 20 64 62 44 61 | 74 65 3a 3a 63 75 72 72 |e - dbDa|te::curr|
|00000740| 65 6e 74 44 61 74 65 28 | 29 29 20 3e 20 33 31 3b |entDate(|)) > 31;|
|00000750| 20 20 0d 09 72 65 74 75 | 72 6e 20 72 65 74 3b 0d | ..retu|rn ret;.|
|00000760| 7d 0d 0d 0d 63 6f 6e 73 | 74 20 63 68 61 72 2a 20 |}...cons|t char* |
|00000770| 20 20 0d 73 74 61 74 75 | 73 43 61 6c 63 3a 3a 63 | .statu|sCalc::c|
|00000780| 61 6c 63 28 63 6f 6e 73 | 74 20 64 62 43 68 61 72 |alc(cons|t dbChar|
|00000790| 2a 20 74 68 65 46 69 65 | 6c 64 29 0d 7b 0d 09 64 |* theFie|ld).{..d|
|000007a0| 62 49 6e 76 6f 69 63 69 | 6e 67 2a 20 74 68 65 54 |bInvoici|ng* theT|
|000007b0| 61 62 6c 65 20 3d 20 28 | 64 62 49 6e 76 6f 69 63 |able = (|dbInvoic|
|000007c0| 69 6e 67 2a 29 20 28 74 | 68 65 46 69 65 6c 64 2d |ing*) (t|heField-|
|000007d0| 3e 66 69 65 6c 64 54 61 | 62 6c 65 28 29 29 3b 09 |>fieldTa|ble());.|
|000007e0| 2f 2f 20 67 65 74 20 74 | 68 65 20 74 61 62 6c 65 |// get t|he table|
|000007f0| 20 6f 6e 20 77 68 69 63 | 68 20 77 65 20 6f 70 65 | on whic|h we ope|
|00000800| 72 61 74 65 0d 09 69 66 | 20 28 74 68 65 54 61 62 |rate..if| (theTab|
|00000810| 6c 65 2d 3e 49 73 4f 76 | 65 72 64 75 65 29 0d 09 |le->IsOv|erdue)..|
|00000820| 09 72 65 74 75 72 6e 20 | 22 4f 76 65 72 64 75 65 |.return |"Overdue|
|00000830| 22 3b 0d 09 65 6c 73 65 | 0d 09 09 72 65 74 75 72 |";..else|...retur|
|00000840| 6e 20 22 22 3b 0d 7d 0d | 0d 0d 76 6f 69 64 20 0d |n "";.}.|..void .|
|00000850| 64 62 49 6e 76 6f 69 63 | 69 6e 67 3a 3a 61 64 64 |dbInvoic|ing::add|
|00000860| 49 6e 76 6f 69 63 65 28 | 75 6e 73 69 67 6e 65 64 |Invoice(|unsigned|
|00000870| 20 6c 6f 6e 67 20 69 6e | 76 4e 75 6d 62 65 72 2c | long in|vNumber,|
|00000880| 20 63 6f 6e 73 74 20 63 | 68 61 72 2a 20 64 75 65 | const c|har* due|
|00000890| 29 0d 7b 0d 09 6e 65 77 | 52 65 63 6f 72 64 28 29 |).{..new|Record()|
|000008a0| 3b 0d 09 49 6e 76 6f 69 | 63 65 4e 75 6d 62 65 72 |;..Invoi|ceNumber|
|000008b0| 20 3d 20 69 6e 76 4e 75 | 6d 62 65 72 3b 0d 09 44 | = invNu|mber;..D|
|000008c0| 61 74 65 44 75 65 20 3d | 20 64 75 65 3b 0d 09 73 |ateDue =| due;..s|
|000008d0| 61 76 65 52 65 63 6f 72 | 64 28 29 3b 0d 7d 0d 0d |aveRecor|d();.}..|
|000008e0| 0d 76 6f 69 64 0d 64 62 | 49 6e 76 6f 69 63 69 6e |.void.db|Invoicin|
|000008f0| 67 3a 3a 61 64 64 54 65 | 73 74 44 61 74 61 28 29 |g::addTe|stData()|
|00000900| 0d 7b 0d 09 61 64 64 49 | 6e 76 6f 69 63 65 28 31 |.{..addI|nvoice(1|
|00000910| 32 33 34 35 2c 20 22 35 | 74 68 20 4d 61 79 20 31 |2345, "5|th May 1|
|00000920| 39 39 36 22 29 3b 0d 09 | 61 64 64 49 6e 76 6f 69 |996");..|addInvoi|
|00000930| 63 65 28 31 32 33 34 39 | 2c 20 22 35 74 68 20 4d |ce(12349|, "5th M|
|00000940| 61 79 20 31 39 39 36 22 | 29 3b 0d 09 61 64 64 49 |ay 1996"|);..addI|
|00000950| 6e 76 6f 69 63 65 28 31 | 32 33 34 36 2c 20 22 35 |nvoice(1|2346, "5|
|00000960| 74 68 20 46 65 62 20 31 | 39 39 36 22 29 3b 0d 09 |th Feb 1|996");..|
|00000970| 61 64 64 49 6e 76 6f 69 | 63 65 28 31 32 33 34 37 |addInvoi|ce(12347|
|00000980| 2c 20 22 34 2d 31 2d 31 | 39 39 36 22 29 3b 0d 09 |, "4-1-1|996");..|
|00000990| 61 64 64 49 6e 76 6f 69 | 63 65 28 31 32 33 34 38 |addInvoi|ce(12348|
|000009a0| 2c 20 22 34 2d 31 2d 31 | 39 39 36 22 29 3b 0d 09 |, "4-1-1|996");..|
|000009b0| 61 64 64 49 6e 76 6f 69 | 63 65 28 31 32 33 34 32 |addInvoi|ce(12342|
|000009c0| 2c 20 22 34 2d 31 2d 31 | 39 39 36 22 29 3b 0d 09 |, "4-1-1|996");..|
|000009d0| 61 64 64 49 6e 76 6f 69 | 63 65 28 31 32 33 34 33 |addInvoi|ce(12343|
|000009e0| 2c 20 22 36 74 68 20 4d | 61 79 20 31 39 39 36 22 |, "6th M|ay 1996"|
|000009f0| 29 3b 0d 7d 0d 0d 0d 69 | 6e 74 20 0d 6d 61 69 6e |);.}...i|nt .main|
|00000a00| 28 29 0d 7b 0d 09 63 6f | 75 74 20 3c 3c 20 22 4f |().{..co|ut << "O|
|00000a10| 4f 46 49 4c 45 20 56 61 | 6c 69 64 61 74 69 6f 6e |OFILE Va|lidation|
|00000a20| 20 53 75 69 74 65 20 2d | 20 54 65 73 74 20 33 33 | Suite -| Test 33|
|00000a30| 5c 6e 22 0d 09 09 20 3c | 3c 20 22 53 68 6f 77 20 |\n"... <|< "Show |
|00000a40| 64 61 74 65 20 66 6f 72 | 6d 61 74 74 69 6e 67 20 |date for|matting |
|00000a50| 61 6e 64 20 63 68 61 72 | 20 61 6e 64 20 62 6f 6f |and char| and boo|
|00000a60| 6c 20 63 61 6c 63 75 6c | 61 74 6f 72 73 22 0d 09 |l calcul|ators"..|
|00000a70| 09 20 3c 3c 20 65 6e 64 | 6c 20 3c 3c 20 65 6e 64 |. << end|l << end|
|00000a80| 6c 3b 0d 0d 09 64 62 43 | 6f 6e 6e 65 63 74 5f 72 |l;...dbC|onnect_r|
|00000a90| 61 6d 09 74 68 65 44 42 | 3b 0d 09 64 62 49 6e 76 |am.theDB|;..dbInv|
|00000aa0| 6f 69 63 69 6e 67 09 09 | 49 6e 76 6f 69 63 69 6e |oicing..|Invoicin|
|00000ab0| 67 3b 09 0d 09 74 68 65 | 44 42 2e 6e 65 77 43 6f |g;...the|DB.newCo|
|00000ac0| 6e 6e 65 63 74 69 6f 6e | 28 29 3b 0d 09 0d 09 49 |nnection|();....I|
|00000ad0| 6e 76 6f 69 63 69 6e 67 | 2e 61 64 64 54 65 73 74 |nvoicing|.addTest|
|00000ae0| 44 61 74 61 28 29 3b 09 | 0d 09 49 6e 76 6f 69 63 |Data();.|..Invoic|
|00000af0| 69 6e 67 2e 44 61 74 65 | 44 75 65 2e 66 6f 72 6d |ing.Date|Due.form|
|00000b00| 61 74 4d 61 73 6b 28 22 | 64 64 74 68 20 4d 6f 6e |atMask("|ddth Mon|
|00000b10| 74 68 20 59 59 59 59 22 | 29 3b 0d 09 63 6f 75 74 |th YYYY"|);..cout|
|00000b20| 20 3c 3c 20 22 41 6c 6c | 20 74 65 73 74 20 72 65 | << "All| test re|
|00000b30| 63 6f 72 64 73 5c 6e 22 | 20 3c 3c 20 49 6e 76 6f |cords\n"| << Invo|
|00000b40| 69 63 69 6e 67 3b 0d 09 | 0d 2f 2f 20 4e 4f 54 45 |icing;..|.// NOTE|
|00000b50| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 69 | the fol|lowing i|
|00000b60| 73 20 66 6f 72 20 64 65 | 6d 6f 6e 73 74 72 61 74 |s for de|monstrat|
|00000b70| 69 6e 67 20 74 68 65 20 | 62 6f 6f 6c 20 63 61 6c |ing the |bool cal|
|00000b80| 63 75 6c 61 74 6f 72 0d | 2f 2f 20 61 20 72 65 61 |culator.|// a rea|
|00000b90| 6c 20 64 61 74 61 62 61 | 73 65 20 73 65 61 72 63 |l databa|se searc|
|00000ba0| 68 20 77 6f 75 6c 64 20 | 62 65 20 62 65 74 74 65 |h would |be bette|
|00000bb0| 72 20 77 69 74 68 20 61 | 6e 20 69 6e 64 65 78 65 |r with a|n indexe|
|00000bc0| 64 20 73 65 61 72 63 68 | 20 6f 6e 20 74 68 65 20 |d search| on the |
|00000bd0| 64 62 44 61 74 65 09 0d | 09 63 6f 75 74 20 3c 3c |dbDate..|.cout <<|
|00000be0| 20 22 5c 6e 5c 6e 53 65 | 61 72 63 68 69 6e 67 20 | "\n\nSe|arching |
|00000bf0| 46 6f 72 20 4f 76 65 72 | 64 75 65 20 72 65 63 6f |For Over|due reco|
|00000c00| 72 64 73 2c 20 62 79 20 | 61 20 63 61 6c 63 75 6c |rds, by |a calcul|
|00000c10| 61 74 65 64 20 62 6f 6f | 6c 20 66 69 65 6c 64 5c |ated boo|l field\|
|00000c20| 6e 22 3b 0d 09 49 6e 76 | 6f 69 63 69 6e 67 2e 73 |n";..Inv|oicing.s|
|00000c30| 65 61 72 63 68 28 49 6e | 76 6f 69 63 69 6e 67 2e |earch(In|voicing.|
|00000c40| 49 73 4f 76 65 72 64 75 | 65 29 3b 0d 0d 09 49 6e |IsOverdu|e);...In|
|00000c50| 76 6f 69 63 69 6e 67 2e | 44 61 74 65 44 75 65 2e |voicing.|DateDue.|
|00000c60| 66 6f 72 6d 61 74 4d 61 | 73 6b 28 22 44 61 79 2c |formatMa|sk("Day,|
|00000c70| 20 44 44 2d 4d 4d 4d 2d | 59 59 22 29 3b 0d 09 63 | DD-MMM-|YY");..c|
|00000c80| 6f 75 74 20 3c 3c 20 49 | 6e 76 6f 69 63 69 6e 67 |out << I|nvoicing|
|00000c90| 20 3c 3c 20 65 6e 64 6c | 3b 0d 0d 09 49 6e 76 6f | << endl|;...Invo|
|00000ca0| 69 63 69 6e 67 2e 44 61 | 74 65 44 75 65 2e 66 6f |icing.Da|teDue.fo|
|00000cb0| 72 6d 61 74 4d 61 73 6b | 28 22 44 44 2f 4d 4d 2f |rmatMask|("DD/MM/|
|00000cc0| 59 59 59 59 22 29 3b 0d | 09 63 6f 75 74 20 3c 3c |YYYY");.|.cout <<|
|00000cd0| 20 49 6e 76 6f 69 63 69 | 6e 67 20 3c 3c 20 65 6e | Invoici|ng << en|
|00000ce0| 64 6c 3b 0d 0d 09 63 6f | 75 74 20 3c 3c 20 65 6e |dl;...co|ut << en|
|00000cf0| 64 6c 20 3c 3c 20 22 64 | 6f 6e 65 22 20 3c 3c 20 |dl << "d|one" << |
|00000d00| 65 6e 64 6c 3b 0d 09 72 | 65 74 75 72 6e 20 45 58 |endl;..r|eturn EX|
|00000d10| 49 54 5f 53 55 43 43 45 | 53 53 3b 0d 7d 20 20 20 |IT_SUCCE|SS;.} |
|00000d20| 20 20 20 20 0d 00 00 00 | 00 00 00 00 00 00 00 00 | ....|........|
|00000d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 01 00 00 00 01 68 | 00 00 00 68 00 00 00 52 |.......h|...h...R|
|00000d90| 00 12 4e 69 6b 69 00 00 | 00 1e 00 00 ff ff 00 00 |..Niki..|........|
|00000da0| 00 00 00 00 00 00 00 00 | ff ff 00 00 00 08 00 a5 |........|........|
|00000db0| 0c 6f 6f 66 74 73 74 33 | 33 2e 63 70 70 33 02 00 |.ooftst3|3.cpp3..|
|00000dc0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00000dd0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 b0 1b 76 04 00 00 | 00 00 00 00 01 ba 44 44 |....v...|......DD|
|00000e00| 44 44 44 44 44 45 44 44 | 44 54 44 54 44 44 44 44 |DDDDDEDD|DTDTDDDD|
|00000e10| 44 44 44 44 44 44 44 44 | 44 34 34 44 34 43 44 33 |DDDDDDDD|D44D4CD3|
|00000e20| 43 43 34 34 34 34 33 43 | 43 43 33 33 33 33 33 33 |CC44443C|CC333333|
|00000e30| 33 33 33 33 33 33 33 33 | 23 33 33 32 33 23 23 23 |33333333|#3323###|
|00000e40| 23 23 23 23 23 23 22 23 | 23 23 22 23 22 22 22 22 |######"#|##"#""""|
|00000e50| 22 22 22 22 22 22 22 22 | 22 22 22 21 22 21 22 12 |""""""""|"""!"!".|
|00000e60| 12 12 12 12 11 21 12 11 | 12 12 11 11 21 11 11 11 |.....!..|....!...|
|00000e70| 11 11 11 11 11 11 11 10 | 11 11 01 01 10 11 01 00 |........|........|
|00000e80| 00 00 00 10 00 01 00 00 | 09 7e 00 00 09 82 05 6d |........|.~.....m|
|00000e90| 61 69 6e 00 00 00 00 48 | 00 09 4d 6f 6e 61 63 6f |ain....H|..Monaco|
|00000ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000eb0| 00 00 00 00 00 00 00 00 | 00 00 00 03 00 04 00 56 |........|.......V|
|00000ec0| 00 04 01 cd 02 63 00 56 | 00 04 01 cd 02 63 af 68 |.....c.V|.....c.h|
|00000ed0| 0f e7 00 00 0c 1b 00 00 | 0c 1b 00 00 09 7c 01 00 |........|.....|..|
|00000ee0| 00 00 00 04 00 01 00 01 | 00 00 01 00 00 00 01 68 |........|.......h|
|00000ef0| 00 00 00 68 00 00 00 52 | 01 a3 e4 cc 2b 56 00 00 |...h...R|....+V..|
|00000f00| 00 1c 00 52 00 01 4d 50 | 53 52 00 01 00 12 4d 57 |...R..MP|SR....MW|
|00000f10| 42 42 00 00 00 2a 03 ef | ff ff 00 00 00 00 00 00 |BB...*..|........|
|00000f20| 00 00 03 ed ff ff 00 00 | 00 14 00 00 00 00 03 f0 |........|........|
|00000f30| ff ff 00 00 00 60 00 00 | 00 00 00 00 00 00 00 00 |.....`..|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+