# include <iostream>
using namespace std;
//Function prototype
void draw_line(char what, int length, int height);
int main()
{
cout << " Mateen Rehman " << endl;
cout << " please enter a letter" << endl;
char what = 'a';
cout << " please enter a number for length" << endl;
int length = 15;
cin >> length;
cout << " please enter a number for height" << endl;
int height = 20;
cin>> height;
for (length = 0; length < 16; length ++)
cout << what << endl;
for (height = 0; height < 21; height ++)
cout << what << endl;
}
void draw_line(char what, int length, int height)
{
cout << what << endl;
how do i do this part " Repeatedly call the function draw_line to display a box of the desired length, height and character." how do i do this. thanks
This post has been edited by NickDMax: 12 March 2008 - 04:55 PM

New Topic/Question
Reply




MultiQuote




|