// Yousef Rabah     Assi 11 part 4        Tues Nov. 6th, 2001       Drawer 1602

#include "CS35lib.h"

	void line_of(int& spaces, char& chara, int& width, int& depth)
	{
		int counter;
		cout<<"What charachter do u wanna use? ";
		cin>>chara;
		cout<<"How many spaces to the right would you like the box to start? ";
		cin>>spaces;
		cout <<"How wide would you like it to be? ";
		cin  >>width;
		cout<<"How much for depth?";
		cin>>depth;
		for (counter=0;counter < spaces ;counter++ )
		{
			cout<<" ";
		}
		
	}


	void top (int spaces, char chara, int width)
	{
		int counter;
		for(counter=1; counter <= width; counter++)
		{
			cout<<chara;	
		}
		return;
	}


	void middle (int spaces, char chara, int width, int depth)
	{
		int counter;
		for (counter=2 ;counter< width ;counter++ )
		{
			cout<<chara;
			for (counter=0;counter < width - 2 ; counter++)
			{
				cout<<" ";
			}
			cout<<chara;
			cout<<endl;
		}
		
	}

	
		
int main()
{
	int width, spaces, counter, depth;
	char chara;
	


	line_of (spaces, chara, width, depth);
	top( spaces, chara, width);
//	middle(spaces, chara, width, depth);
	top (spaces, chara, width);
	
	cout <<endl;
	return 0;
}

