Hello, guys. I am trying to make a hollow box out of asterisks whose size is determined by the user. Check the comments to see what I mean if it's unclear; also, there is the output I'm getting. My IDE is CodeBlocks and my OS is Win7. I'm wondering why my output is off. This was a problem I had a few years ago and now I'm trying to solve it on my own. Any help is appreciated.
The problem is in the makeSideOfBox function.
edit: I solved it on my own. Not the cleanest of solutions. I just added a "cout << endl;" after the first calling of the makeTopOrBot functions. And changed the makeSideOfBox function slightly--not sure if that mattered though.