home *** CD-ROM | disk | FTP | other *** search
/ Sams Teach Yourself C in 21 Days (6th Edition) / STYC216E.ISO / mac / Examples / Day01 / app.cs next >
MacBinary  |  2002-05-26  |  1.1 KB  |  [TEXT/LMAN]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Star Painter (image/starPainter) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert ActiveMARK-protected archive (archive/activeMARKProtectedArchive) ext Unsupported
1% dexvert Calamus Text Style List (other/calamusTextStyleList) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sun May 26 15:07:30 2002, modified Sun May 26 15:07:30 2002, creator 'LMAN', type ASCII, 530 bytes "app.cs" , at 0x292 286 bytes resource default (weak)
99% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID TTComp archive compressed (bin-4K) default (weak)
16% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[LMAN]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 06 61 70 70 2e 63 73 | 00 00 00 00 00 00 00 00 |..app.cs|........|
|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 4c 4d 41 | 4e 00 00 ff ff ff ff 00 |.TEXTLMA|N.......|
|00000050| 00 00 00 00 00 02 12 00 | 00 01 1e b9 16 e2 f2 b9 |........|........|
|00000060| 16 e2 f2 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 31 5f 00 00 |........|....1_..|
|00000080| 2f 2f 20 61 70 70 2e 63 | 73 20 2d 20 41 20 73 61 |// app.c|s - A sa|
|00000090| 6d 70 6c 65 20 43 23 20 | 61 70 70 6c 69 63 61 74 |mple C# |applicat|
|000000a0| 69 6f 6e 0d 0a 2f 2f 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ion..//-|--------|
|000000b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000d0| 2d 2d 2d 2d 2d 2d 20 0d | 0a 20 20 0d 0a 75 73 69 |------ .|. ..usi|
|000000e0| 6e 67 20 53 79 73 74 65 | 6d 3b 0d 0a 20 20 0d 0a |ng Syste|m;.. ..|
|000000f0| 63 6c 61 73 73 20 73 61 | 6d 70 6c 65 0d 0a 7b 20 |class sa|mple..{ |
|00000100| 20 0d 0a 20 20 20 20 70 | 75 62 6c 69 63 20 73 74 | .. p|ublic st|
|00000110| 61 74 69 63 20 76 6f 69 | 64 20 4d 61 69 6e 28 29 |atic voi|d Main()|
|00000120| 0d 0a 20 20 20 20 7b 0d | 0a 20 20 20 20 20 20 20 |.. {.|. |
|00000130| 20 2f 2f 44 65 63 6c 61 | 72 65 20 76 61 72 69 61 | //Decla|re varia|
|00000140| 62 6c 65 73 0d 0a 20 20 | 0d 0a 20 20 20 20 20 20 |bles.. |.. |
|00000150| 20 20 69 6e 74 20 72 61 | 64 69 75 73 20 3d 20 34 | int ra|dius = 4|
|00000160| 3b 0d 0a 20 20 20 20 20 | 20 20 20 63 6f 6e 73 74 |;.. | const|
|00000170| 20 64 6f 75 62 6c 65 20 | 50 49 20 3d 20 33 2e 31 | double |PI = 3.1|
|00000180| 34 31 35 39 3b 0d 0a 20 | 20 20 20 20 20 20 20 64 |4159;.. | d|
|00000190| 6f 75 62 6c 65 20 61 72 | 65 61 3b 0d 0a 20 20 0d |ouble ar|ea;.. .|
|000001a0| 0a 20 20 20 20 20 20 20 | 20 2f 2f 44 6f 20 63 61 |. | //Do ca|
|000001b0| 6c 63 75 6c 61 74 69 6f | 6e 0d 0a 20 20 20 20 20 |lculatio|n.. |
|000001c0| 20 20 20 20 20 0d 0a 20 | 20 20 20 20 20 20 20 61 | .. | a|
|000001d0| 72 65 61 20 3d 20 50 49 | 20 2a 20 72 61 64 69 75 |rea = PI| * radiu|
|000001e0| 73 20 2a 20 72 61 64 69 | 75 73 3b 0d 0a 20 20 0d |s * radi|us;.. .|
|000001f0| 0a 20 20 20 20 20 20 20 | 20 2f 2f 50 72 69 6e 74 |. | //Print|
|00000200| 20 74 68 65 20 72 65 73 | 75 6c 74 73 0d 0a 20 20 | the res|ults.. |
|00000210| 0d 0a 20 20 20 20 20 20 | 20 20 43 6f 6e 73 6f 6c |.. | Consol|
|00000220| 65 2e 57 72 69 74 65 4c | 69 6e 65 28 22 52 61 64 |e.WriteL|ine("Rad|
|00000230| 69 75 73 20 3d 20 7b 30 | 7d 2c 20 50 49 20 3d 20 |ius = {0|}, PI = |
|00000240| 7b 31 7d 22 2c 20 72 61 | 64 69 75 73 2c 20 50 49 |{1}", ra|dius, PI|
|00000250| 20 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 43 6f 6e | );.. | Con|
|00000260| 73 6f 6c 65 2e 57 72 69 | 74 65 4c 69 6e 65 28 22 |sole.Wri|teLine("|
|00000270| 54 68 65 20 61 72 65 61 | 20 69 73 20 7b 30 7d 22 |The area| is {0}"|
|00000280| 2c 20 61 72 65 61 29 3b | 0d 0a 20 20 20 20 7d 0d |, area);|.. }.|
|00000290| 0a 7d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.}......|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000310| 54 68 69 73 20 72 65 73 | 6f 75 72 63 65 20 66 6f |This res|ource fo|
|00000320| 72 6b 20 69 6e 74 65 6e | 74 69 6f 6e 61 6c 6c 79 |rk inten|tionally|
|00000330| 20 6c 65 66 74 20 62 6c | 61 6e 6b 20 20 20 00 00 | left bl|ank ..|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000410| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|00000420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+