Hi I'm new to C++ and to here.
I have an assignment.
Make a HOLLOW rectangle using Functions.
Have the user imput the amount of rows and columns....and border width .
It should look something like this (It's supposed to be a HOLLOW rectangle) :
Enter number of rows and columns:
Enter Border width:
**********
* *
* *
* *
**********
I'm only able to get this:
***********
***********
***********
***********
***********
here's the part of my code that I know is affecting it :
//This function displays a square made of astericks
void displayStars (int rows, int cols)
{
for (int across = 0; across < rows; across++)
{
for (int down = 0; down < cols; down++)
cout << "*";
cout <<endl;
}
}