SOURCE FILE: batStackShell.cpp
#include<iostream>
using namespace std ;
void MakeOneBat () ;
void MakeBase() ;
int main()
{
/*
Here in this main() function put code that declares variables,
prints the information and directions, gets the input from the
user, does the error checking, and produces the output.
To help keep the main program uncluttered, consider utilizing
additional functions to do some of these tasks - like a function
to print the information and directions, and another function to
get a value from the user.
To print the stack of bats, use a loop here in main() with a body that
contains a call to the function MakeOneBat().
To make the base, place a call to MakeBase() here in main().
Here in main() don't put cout statements that make parts of a bat or
base. Put such cout statements only in the functions MakeOneBat() and
MakeBase().
*/
}
/* ************************************************************** */
/* Inside the body of the MakeOneBat() function below, put code to print one
copy of the bat figure - just ONE BAT. In other words, put code inside
MakeOneBat() that will print this:
=, (\_/) ,=
/`-'--(")--'-'\
jgs / (___) \
/.-.-./ | | \.-.-.\
" "
When you write the code, you have to be careful, because some of the
characters in the bat are backslashes and double quotes. You will remember
that you need to add an escape character just prior to each of those
characters.
*/
void MakeOneBat ()
{
/* code for function MakeOneBat goes in here,
between the braces. */
}
/* ************************************************************** */
/* Inside the body of the MakeBase() function below, put code to
print one copy of the base - just one. In other words,
code that will print this:
|||||||||||||||
|||||||||||||||||||||
|||||||||||||||||||||||||||
|||||||||||||||||||||||||||||||||
*/
void MakeBase()
{
/* code for function MakeBase goes in here,
between the braces. */
}
/* ************************************************************** */