473,671 Members | 2,501 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

degree symbol (weather program)

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.
--
Neal
Jan 24 '06 #1
3 11369
Hi,

check out http://www.lookuptables.com/
ascii code 167 or 248 seem to be what you are looking for.

kind regards,
Bruno.

"Neal" <Ne**@discussio ns.microsoft.co m> wrote in message
news:95******** *************** ***********@mic rosoft.com...
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.
--
Neal

Jan 24 '06 #2
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/unic...00b0/index.htm

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

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

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

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Jan 24 '06 #3
Thanks, used UniCode, worked perfectly, and simply :)
--
Neal
"Jochen Kalmbach [MVP]" wrote:
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/unic...00b0/index.htm

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

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

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

--
Greetings
Jochen

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

Jan 26 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5859
by: Dingbat | last post by:
I am finding that when I use XSLT to display convert XML like this: <temp units="°C">23</temp> the resulting HTML displays an extra character in front of the degree symbol, like this: 23°C This happens whether I use PHP or ASP so it seems to be
2
5600
by: Freddy | last post by:
I am not an experienced programmer, but I had a VC++ program I am trying to eliminate all the VC++ commands from it...and keeping it as a normal C/C++ program......I guess I have succeeded so far, but I am getting the unresolved external symbol errors, this is what I am getting: Linking... Test.obj : error LNK2001: unresolved external symbol "void __cdecl free_vector(double *)" (?free_vector@@YAXPAN@Z)
1
2559
by: pmclinn | last post by:
I have the xml feed belowfrom this link: http://www.weather.gov/alerts/ct.rss I for the life of me can not get this data to format in a html table using client side scripting. Any help would be much appreciated. <?xml version="1.0" encoding="UTF-8" ?> - <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> - <channel> <title>Connecticut - Current Watches, Warnings and Advisories for
9
13266
by: Prasad | last post by:
HI, I am a beginner in VC++.. I am trying to write a Win32 console application in visual studio.. I am using following header files.. #include <STRING> using namespace std; #include <hash_map>//from Standard template library //and some other headers
66
3821
by: stryfedll | last post by:
Sorry this isn't directly concerning a programming language but I wanted to reach real programmers. I am in college right now and am not really interested in investing 3 more years of my life for a Bachelors degree. I know that I can learn more about computer programming if I spent the time over the next 3 years reading books and programming at my own pace rather than an instructors pace, as well as not needing to take so many electives,...
2
5319
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: 1>make_buildinfo.obj : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function _make_buildinfo2 Ask on python-list@python.org . - Josiah
1
4924
by: Shiva48 | last post by:
Thanks to Gannon11 and ro351988- Moderator. I give below the complete Java file and pls help me to rectify the errors. package com.wrox.proj2ee.ch10.app; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import com.wrox.proj2ee.ch12.*// The requesthandlers interface in this package. public class ShowRecordRequesthandler implements RequestHandler
2
2316
by: dzine | last post by:
Hi, caution....BRAND NEW NEWBIE HERE I use Quark Docs to create XML using Atomic XPort PE. The Quark docs are in the form of catalogs and I pull or export the content of the catalogs out into XML format for web transistion. In some of the XML I export through Atomic XPort PE, I get this funny symbol.... • Needless to say, it is through the entire XML code and since I am new to this process and don't know what this means, I...
2
2079
by: sandeep patil | last post by:
how to diplay the weather condiction on my webpage suppose i want to read weather from www.bbc.co.uk/weather.html how i can read it usin program
0
8478
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8919
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8821
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8599
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7439
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4409
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2813
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2052
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1810
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.