Source: 1776 p 271
"Will it not be possible": Joseph Reed to George Washington, December 22, 1776 in PGW, VII, 415
It was time something was done. Something aggressive and surprising. Even failure would be preferable to doing nothing.
from struct import *We can hexdump them to see their contents:
open('1long.bin','wb').write(pack('L', 0x01020304))
open('2short.bin','wb').write(pack('HH', 0x0102, 0x0304))
open('4char.bin','wb').write(pack('BBBB', 0x01, 0x02, 0x03, 0x04))
$ hexdump 1long.binBefore hexdumping, one might suspect that the outputs would be the same, but they're not. Each gave a diffent ordering.
0000000 0304 0102 (this is the long: 0x01020304)
0000004
$ hexdump 2short.bin
0000000 0102 0304 (these are the 2 shorts: 0x0102, 0x0304)
0000004
$ hexdump 4char.bin
0000000 0201 0403 (these are the 4 chars: 0x01, 0x02, 0x03, 0x04)
0000004
./TestCppProgram: symbol lookup error: ./TestCppProgram: undefined symbol: _ZN12CppProgramC1EvI searched the internet. Two of the interesting links I found were the following: