How do I print subscripts and superscripts to screen ?
for example,how do i print 2 as a superscript as in x^2 ?
Can i use printf ?
Printable View
How do I print subscripts and superscripts to screen ?
for example,how do i print 2 as a superscript as in x^2 ?
Can i use printf ?
You cannot do it in console mode apps.
In Win32 apps, you have to use the window's hDC to use TextOut api or DrawText api. These allow yuou to position text exactly.
A simpler approach is to change fonts for the window and use a math symbols font .
The attached zip file has math.ttf - a math symbol truetype font.