home *** CD-ROM | disk | FTP | other *** search
/ Sams Teach Yourself C in 21 Days (6th Edition) / STYC216E.ISO / mac / Examples / Day23 / cout.cpp next >
MacBinary  |  2002-05-24  |  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
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Fri May 24 22:55:46 2002, modified Fri May 24 22:55:46 2002, creator 'LMAN', type ASCII, 609 bytes "cout.cpp" , at 0x2e1 286 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
keyvalue
macFileType[TEXT]
macFileCreator[LMAN]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 63 6f 75 74 2e 63 | 70 70 00 00 00 00 00 00 |..cout.c|pp......|
|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 61 00 | 00 01 1e b9 14 ad b2 b9 |......a.|........|
|00000060| 14 ad b2 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 d4 6a 00 00 |........|.....j..|
|00000080| 2f 2f 55 73 69 6e 67 20 | 63 6f 75 74 20 77 69 74 |//Using |cout wit|
|00000090| 68 20 64 69 66 66 65 72 | 65 6e 74 20 64 61 74 61 |h differ|ent data|
|000000a0| 20 74 79 70 65 73 0d 0a | 23 69 6e 63 6c 75 64 65 | types..|#include|
|000000b0| 20 3c 69 6f 73 74 72 65 | 61 6d 2e 68 3e 0d 0a 0d | <iostre|am.h>...|
|000000c0| 0a 69 6e 74 20 6d 61 69 | 6e 28 69 6e 74 20 61 72 |.int mai|n(int ar|
|000000d0| 67 63 2c 20 63 68 61 72 | 2a 20 61 72 67 76 5b 5d |gc, char|* argv[]|
|000000e0| 29 0d 0a 7b 0d 0a 20 20 | 20 20 69 6e 74 20 20 20 |)..{.. | int |
|000000f0| 61 6e 5f 69 6e 74 20 3d | 20 31 32 33 3b 0d 0a 20 |an_int =| 123;.. |
|00000100| 20 20 20 6c 6f 6e 67 20 | 20 61 5f 6c 6f 6e 67 20 | long | a_long |
|00000110| 3d 20 39 38 37 36 35 34 | 33 32 31 3b 0d 0a 20 20 |= 987654|321;.. |
|00000120| 20 20 66 6c 6f 61 74 20 | 61 5f 66 6c 6f 61 74 20 | float |a_float |
|00000130| 3d 20 28 66 6c 6f 61 74 | 29 20 31 32 33 2e 34 35 |= (float|) 123.45|
|00000140| 36 3b 0d 0a 20 20 20 20 | 63 68 61 72 20 20 61 5f |6;.. |char a_|
|00000150| 63 68 61 72 20 3d 20 27 | 41 27 3b 0d 0a 20 20 20 |char = '|A';.. |
|00000160| 20 63 68 61 72 20 2a 61 | 5f 73 74 72 69 6e 67 20 | char *a|_string |
|00000170| 3d 20 22 41 20 53 74 72 | 69 6e 67 22 3b 0d 0a 20 |= "A Str|ing";.. |
|00000180| 20 20 20 62 6f 6f 6c 20 | 20 61 5f 62 6f 6f 6c 65 | bool | a_boole|
|00000190| 61 6e 20 3d 20 74 72 75 | 65 3b 0d 0a 0d 0a 20 20 |an = tru|e;.... |
|000001a0| 20 20 63 6f 75 74 20 3c | 3c 20 22 5c 6e 22 3b 0d | cout <|< "\n";.|
|000001b0| 0a 20 20 20 20 63 6f 75 | 74 20 3c 3c 20 22 61 6e |. cou|t << "an|
|000001c0| 20 69 6e 74 3a 20 20 20 | 22 3c 3c 20 61 6e 5f 69 | int: |"<< an_i|
|000001d0| 6e 74 20 20 20 20 3c 3c | 20 27 5c 6e 27 3b 0d 0a |nt <<| '\n';..|
|000001e0| 20 20 20 20 63 6f 75 74 | 20 3c 3c 20 22 61 20 6c | cout| << "a l|
|000001f0| 6f 6e 67 3a 20 20 20 22 | 3c 3c 20 61 5f 6c 6f 6e |ong: "|<< a_lon|
|00000200| 67 20 20 20 20 3c 3c 20 | 27 5c 6e 27 3b 0d 0a 20 |g << |'\n';.. |
|00000210| 20 20 20 63 6f 75 74 20 | 3c 3c 20 22 61 20 66 6c | cout |<< "a fl|
|00000220| 6f 61 74 3a 20 20 22 3c | 3c 20 61 5f 66 6c 6f 61 |oat: "<|< a_floa|
|00000230| 74 20 20 20 3c 3c 20 27 | 5c 6e 27 3b 0d 0a 20 20 |t << '|\n';.. |
|00000240| 20 20 63 6f 75 74 20 3c | 3c 20 22 61 20 63 68 61 | cout <|< "a cha|
|00000250| 72 3a 20 20 20 22 3c 3c | 20 61 5f 63 68 61 72 20 |r: "<<| a_char |
|00000260| 20 20 20 3c 3c 20 27 5c | 6e 27 3b 0d 0a 20 20 20 | << '\|n';.. |
|00000270| 20 63 6f 75 74 20 3c 3c | 20 22 61 20 73 74 72 69 | cout <<| "a stri|
|00000280| 6e 67 3a 20 22 3c 3c 20 | 61 5f 73 74 72 69 6e 67 |ng: "<< |a_string|
|00000290| 20 20 3c 3c 20 27 5c 6e | 27 3b 0d 0a 20 20 20 20 | << '\n|';.. |
|000002a0| 63 6f 75 74 20 3c 3c 20 | 22 61 20 62 6f 6f 6c 3a |cout << |"a bool:|
|000002b0| 20 20 20 22 3c 3c 20 61 | 5f 62 6f 6f 6c 65 61 6e | "<< a|_boolean|
|000002c0| 20 3c 3c 20 27 5c 6e 27 | 3b 0d 0a 0d 0a 20 20 20 | << '\n'|;.... |
|000002d0| 20 72 65 74 75 72 6e 20 | 30 3b 0d 0a 7d 0d 0a 0d | return |0;..}...|
|000002e0| 0a 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 |........|........|
+--------+-------------------------+-------------------------+--------+--------+