degree symbol (weather program)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

VC++
VS 2003

I am currently finishing up a weather bug program that receives data from
the weather.com weather feed, just need some finishing touches. The one
issue I have run into seems to be a simple one in the grand scheme of things.
How do I go about printing a degree symbol for the temperature? Is there an
ASCII code for it, or some sort of shortcut key? I want to add it to a
string so I can print it out in a label with the rest of the temperature.
 
Hi Neal!
How do I go about printing a degree symbol for the temperature? Is there an
ASCII code for it, or some sort of shortcut key? I want to add it to a
string so I can print it out in a label with the rest of the temperature.

In general: You should use UNICODE.

'DEGREE SIGN': http://www.fileformat.info/info/unicode/char/00b0/index.htm

'DEGREE CELSIUS':
http://www.fileformat.info/info/unicode/char/2103/index.htm

'DEGREE FAHRENHEIT':
http://www.fileformat.info/info/unicode/char/2109/index.htm

'KELVIN SIGN': http://www.fileformat.info/info/unicode/char/212a/index.htm

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
Back
Top