#!/bin/sh
# This is a shar archive.
# The rest of this file is a shell script which will extract:
#
# 5_1a.c 5_1b.c 5_1c.c 5_1d.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 23:04:52 EDT 1990
#
echo x - 5_1a.c
sed 's/^X//' > 5_1a.c << '!EOF!'
/* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
/* The C++ Answer Book */
/* Tony Hansen */
/* All rights reserved. */
table variables(200);
!EOF!
ls -l 5_1a.c
echo x - 5_1b.c
sed 's/^X//' > 5_1b.c << '!EOF!'
/* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
/* The C++ Answer Book */
/* Tony Hansen */
/* All rights reserved. */
name* n = variables.insert(name_string);
!EOF!
ls -l 5_1b.c
echo x - 5_1c.c
sed 's/^X//' > 5_1c.c << '!EOF!'
/* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
/* The C++ Answer Book */
/* Tony Hansen */
/* All rights reserved. */
return variables.look(name_string)->value;
!EOF!
ls -l 5_1c.c
echo x - 5_1d.c
sed 's/^X//' > 5_1d.c << '!EOF!'
/* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
/* The C++ Answer Book */
/* Tony Hansen */
/* All rights reserved. */
variables.insert("pi")->value = 3.1415926535897932385;
variables.insert("e")->value  = 2.7182818284590452354;
!EOF!
ls -l 5_1d.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
