degree symbol (weather program)

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.
 
J

Jochen Kalmbach [MVP]

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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top