Printing Two Characters in the same space

desired output: Two letters appearing in the same space at the same time. Please offer me hints as to how accomplish this goal.

I have already tried using this code:
 
  cout << "T \b\bY"; // This code replaces "T" with "Y" 


output: "Y".

This is not what I want to accomplish. Please imagine, on a piece of paper, I first write the letter "T". Then, without erasing "T", I write the letter "Y" in the same space. I wish to duplicate this process in code. Is this even possible?
Last edited on
If you're dealing with a printer, you can do this by issuing a CR with no LF.

If you're attempting to do this with a console widow, you can't do this. Two characters can't occupy the same space on the screen.

you could try looking into making a custom ascii symbol.

It used to be that you could load custom symbols into an alternate font on the VGA video card. (You still can for plain VGA use...)

The problem is that the Windows Console does not work that way. If you want special characters, you need a font with those special characters, and you need to configure your Console Window to use that font.

This is a whole lot more grief than it is worth:

Create a GUI application and put the characters together in the same spot. There are many ways to do this.

Good luck!
Topic archived. No new replies allowed.