Displaying Ohms Symbol in C++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shing
    New Member
    • Mar 2007
    • 58

    Displaying Ohms Symbol in C++

    I was told that to put the OHMS symbol into a C++ program you write "\u2126"?

    My program fed this to me: 

    What is the correct method? If anyone could show me how to show superscript and subscripts when running the C++ program, that would be great too (or maybe it's not possible to be shown?)
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    You may be after Unicode 2126.

    That means you need a font that supoports U 2126. The C++ console only supports Courier 10 and that does not have your symbol.

    Try to use Google for tghis sort of thing: http://www.fileformat.info/info/unic...2126/index.htm.

    Comment

    Working...