Oh, it is not as hard.
If you do not mind to stick to console-based variant, simply do the following:
Invent how the man should look like:
1 2 3 4 5
|
hangman:
+=======+
| 0 |
| + |
| ^ |
|
Then create char array, for example char[5][12] and "draw" the man inside, placing proper characters to proper places.
Then create another array of the same size and fill it with values 255 in the places where nothing should be drawn, with values 1 where lines of the first attempt should be drawn, with values 2 where lines of the second attempt lie etc.
Then every time to draw a man simply clear the screen (or skip some lines) and output your array char by char, but put the char from array only if the second array contains value less than current number of attempts for the same cell.
Sorry if the explanation is not quite clear, but I hope you can catch the idea meditating over it. There exist a number of other and similar ways surely.