#!/bin/sh # This is a shar archive. # The rest of this file is a shell script which will extract: # # 3_2c.c 3_2p.c makefile # # To extract the files from this shell archive file simply # create a directory for this file, move the archive file # to it and enter the command # # sh filename # # The files will be extracted automatically. # Note: Do not use csh. # # Archive created: Mon Jul 30 22:58:53 EDT 1990 # echo x - 3_2c.c sed 's/^X//' > 3_2c.c << '!EOF!' /* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */ /* The C++ Answer Book */ /* Tony Hansen */ /* All rights reserved. */ a = b + c * d << 2 & 8 a & 077 != 3 a == b || a == c && c < 5 c = x != 0 0 <= i < 7 f(1,2)+3 a = - 1 + + b -- - 5 a = b == c ++ a = b = c = 0 a[4][2] *= * b ? c : * d * 2 a-b,c=d !EOF! ls -l 3_2c.c echo x - 3_2p.c sed 's/^X//' > 3_2p.c << '!EOF!' /* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */ /* The C++ Answer Book */ /* Tony Hansen */ /* All rights reserved. */ (a = (((b + (c * d)) << 2) & 8)) (a & (077 != 3)) ((a == b) || ((a == c) && (c < 5))) (c = (x != 0)) ((0 <= i) < 7) ((f(1,2))+3) (a = (((- 1) + (+ (b --))) - 5)) (a = (b == (c ++))) (a = (b = (c = 0))) (((a[4])[2]) *= ((* b) ? c : ((* d) * 2))) ((a-b),(c=d)) !EOF! ls -l 3_2p.c echo x - makefile sed 's/^X//' > makefile << '!EOF!' test: @echo tests done !EOF! ls -l makefile # The following exit is to ensure that extra garbage # after the end of the shar file will be ignored. exit 0