/*	Default Parameter DrawBar() program.
	Illustrates DrawBar function with default parameter */

#include <iostream.h>

using namespace std;	// October 5, 2001

//--------------------------------------------------------------------------------
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);
}

