//file: sticfigure.cpp
//Draw a stick figure (main function only 0
# include <iostream>
using namespace std;
// Functions used ...
void drawCircle ();
void drawTriangle();
void drawIntersect();
void drawBase();
int main()
{
drawCircle();
drawTriangle();
drawIntersect();
return 0;
}
//Draws a circle
void drawCircle()
{
cout<< " * " <<endl;
cout<< " * * " <<endl;
cout << " * * "<< endl;
cin.get();
}
//end drawCircle
// Draws a triangle
void drawTriangle()
{
drawIntersect();
drawBase();
} // end drawTriangle
// Draws intersecting lines
void drawIntersect()
{
cout << " / \ \ "<< endl;
cout << " / \ \ " << endl;
cout << " / \ \ " << endl;
cin.get();
} //end drawIntersect
//Draw a horizontal Lien
void drawBase()
{
cout << " _ _ _ _ _ _ _ " << endl;
} //end drawBase
I don't know why the program does not run base on the order I set up
it draw the base before the intersect..