#include <iostream>
#include <stdlib.h>
using namespace std;
const int YMAX = 20; // Array bound for screen height
const int XMAX = 70; // Array bound for screen length
class Draw {
protected:
char display[XMAX][YMAX]; // 20 by 70 character array to hold the
picture
int input, xpos, ypos;
public:
// Constructor to initialize object member data
Draw() : input(0), xpos(0), ypos(19)
{ }
void greeting(); // Greeting screen to let the user know what this
program is and to instruct the user on how to use the program
void setup_screen(); // Setup the array
void process_picture(); // Process the user provided string and store
into the array
void display_picture(); // Print the picture onto the screen
};
void Draw::greeting() {
//This function will display to the user the instructions on
how to use this program
cout << "Welcome to the picture string generator!" << endl
<< "Please enter a string of numbers representing " << endl
<< "a picture that you would like to display." << endl
<< "Numbers print as the following:" << endl << endl
<< "8 1 2" << endl
<< " \\ | /" << endl
<< "7 --+-- 3" << endl
<< " / | \\" << endl
<< "6 5 4" << endl << endl
<< "Positive numbers will draw an *." << endl
<< "A negative number will move the cursor but not draw a *." <<
endl;
}
void Draw::setup_screen() {
//This function will initialize the "display" array so that
when it is printed all array elements will be ' ' (blank)
}
void Draw::process_picture() {
//This function will process the users input and create the
picture by storing characters in the "display" array
}
void Draw::display_picture() {
//This function will print the "display" array to the screen
}