/*	Overloaded DrawBar() program.
	Illustrates overloaded DrawBar functions */

#include <iostream.h>

using namespace std;	// October 5, 2001

//--------------------------------------------------------------------------------
void DrawBar(int Length)
/*	Displays a bar of asterisks of length Length.
	Length assumed >= 0                                      */
{
	const char Mark = '*';
	for (int i=0; i<Length; i++)
		cout << Mark;
	cout << endl;
}
//--------------------------------------------------------------------------------
void DrawBar(int Length, char Mark)
/*	Displays a bar of length Length using the character Mark.
	Length assumed >= 0                                                             */
{
	for (int i=0; i<Length; i++)
		cout << Mark;
	cout << endl;
}
//--------------------------------------------------------------------------------
int main()
{
	DrawBar(40);
	DrawBar(10,'$');
	DrawBar(40);

	return(0);
}

