SOURCE FILE: roseStackShell.cpp
#include<iostream>
using namespace std ;
/* PROTOTYPES */
void MakeOneRose () ;
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 roses, use a loop here in main() with
a body that contains a call to the function
"MakeOneRose()."
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 rose or base. Put such 'cout' statements only in the
functions MakeOneRose() and MakeBase().
*/
}
/* ************************************************************** */
/*
Inside the body of the "MakeOneRose() function below, put code to
print one copy of the rose - just one rose. In other
words, code that will print this:
_
_.;_'-._
{`--.-'_,}
{; \,__.-'/}
{.'-`._;-';
`'--._.-'
.-\\,-"-.
`- \( '-. \
\;---,/
.-""-;\
/ .-' )\
\,---'` \\
jgs \|
When you write the code, you have to be careful, because some of the
characters in the rose are backslashes and double quotes. You
will remember that those characters have to be 'escaped' with a backslash.
*/
void MakeOneRose ()
{
/* code for function MakeOneRose 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. */
}
/* ************************************************************** */