I need to know how to make a hollow box with spaces in between so the code outputs like this for an inputted character. The solid box is fine, I'm just not sure how to create the spaces.
Use if or if else statements. Look at it one step at a time:
1) You need to modify the contents after the first line and before the last line of the box. In other words, hcount > 0 and hcount < height - 1.
2) While modifying and you're on the line, after count == 0, there is a space in count == 1. Then on count == 2, the char appears again, then beyond that to whatever width is it's all spaces.
Logic operators will help in solving this ie. && (AND logic operator) and || (OR logic operator).