I am very new to C++, and for my first assignment in a class I am supposed to create a program to create a square shaped figure, with a given character that the user inputs. It's supposed to look like: If a is entered as the character: EDIT:...
<div>I am very new to C++, and for my first assignment in a class I am supposed to create a program to create a square shaped figure, with a given character that the user inputs. It's supposed to look like:
If a is entered as the character:
EDIT: for some reason it will not let me move the a's or *'s over to the right to make a hollow box shape, but that's how they are supposed to be.
aaaaaa
a a
a a
a a
a a
a a
aaaaaa
or if * is entered as the character:
******
* *
* *
* *
* *
******
I have an idea what I am doing, however, I cannot figure out how to define what character the box is made out of . My code so far is:
#include
using namespace std;
int main()
{
char Box = Box;
cout > Box;
cout