You can read the character, width and height with cin, which is overloaded for different datatypes, e.g.:
int width, height;
char c;
cout << "Enger the character: ";
cin >> c;
cout << "Enter the width: ";
cin >> width;
...
The functions to display the horizontal & vertical lines could look like:
void print_horizontal_line (char c, int width) {
for (int i=0; i<width; i++) {
cout << c ;
}
cout << endl;
}
void print_vertical_line (char c) {
cout << c << endl;
}
You'll need to create a loop in your main program to call get_horizontal_line() 3 times and
print_vertical_line() as many times as necessary.

Greg H.
03/08/22
Quintin B.
Would you recommend a for loop or a while loop for you main function? I'm stuck at where to start.03/08/22