I have to write a program that prompts the user to enter a size for a box to be displayed (# of rows between 3 and 20, # of columns between 3 and 60, and a character to fill the box with), and then displays a box of the given size, bordered with *'s, and filled with the specified character. I must use the two functions I already have in my code. To help you get a better understanding, if 3,4,"#' are passed as arguments, the function should display:
****
*##*
****
I think I have a good idea of the code, but I cannot get it to compile. I am getting error C2556 that says overloaded function differs only by return type from 'void displayBox(int, int, char)'. Also error message C2371: 'displayBox': redefinition; different basic types. I do not know how to fix this, and any help would be greatly appreciated.
#include <iostream>
using namespace std;
int cinInRange(int low, int high);
void displayBox(int numRows, int numCols, char fillChar);
int main()
{
int numRows, numCols;
char chara;