SOURCE FILE: candyShell.cpp
#include<iostream>
using namespace std ;
void MakeOneM () ;
void MakeBase() ;
/* ************************************************************** */
/* FUNCTION: MAIN */
/* ************************************************************** */
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 column of M candies, use a loop here in main() with a
body that contains a CALL to the function MakeOneM().
To make the base, place a CALL to MakeBase() here in main().
Here in main() DO NOT put cout statements that make parts of an M candy
or parts of a base. Put such cout statements only in the functions
MakeOneM() and MakeBase().
*/
}
/* ************************************************************** */
/* FUNCTION: MakeOneM */
/* ************************************************************** */
/* Inside the body of the MakeOneM() function below, put code to print one
copy of the M figure - just code to make ONE. In other words, put
code inside MakeOneM() that will print this:
_..._
.'_ _'.
/ (.) (.) \
_.-._| ,_____. |_.-._
(== |-\ '-' /-| ==)
`"` '.__M__.' `"`
__// \\__
jgs (___) (___)
When you write the code, you have to be careful, because some of the
characters in the M candy are backslashes and double quotes. You will
remember that you need to add an escape character just prior to each of
those characters.
*/
void MakeOneM ()
{
/* code for function MakeOneM goes in here,
between the braces. */
}
/* ************************************************************** */
/* FUNCTION: MakeBase */
/* ************************************************************** */
/* 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. */
}
/* ************************************************************** */