i need help creating a rectangle where the user creates the border and fills in the empty space with any symbol they want.
it should look like this
#######
#@@@@#
#@@@@#
#@@@@#
#######
mine only looks like this
#
@@@@@
#
@@@@@
#
@@@@@
any help??? heres my code:
char b;// character used to draw border of rectangle
char f;//character used to fill the rectangle
cout << "What character would you like to use to draw the border of your rectangle?";
cin >> b;
cout << "What character would you like to use to fill the rectangle?";
cin >> f;
for (int i = 0; i < rectangleLength; i++)
{
cout << b;
cout <<"\n";
for (int j = 0; j < rectangleWidth; j++)
{
cout << f;
}
cout << "\n";