[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

how to printf ° in VC++

Posted on 2006-06-15
2
Medium Priority
?
814 Views
Last Modified: 2010-05-18
Hello experts,
This might be very easy question for someone.
I can do printf( "%c", 176) in linux to print °, but this does not work in windows.
Any idea?
Thanks
0
Comment
Question by:lzha022
2 Comments
 
LVL 12

Accepted Solution

by:
rajeev_devin earned 100 total points
ID: 16917446
Do this printf( "%c", 248). It will print °.
0
 

Author Comment

by:lzha022
ID: 16917774
Thanks.
I found a strange problem. Previously i tried this on one machine:
for(int i=0; i<255;i++)
 printf("i=%d %c",i, i)

It did not print anything when i is greater than 128, but now i am trying it on a different machine, it is working fine.
Any idea?
Anyway you have answered my quetion, thanks.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month19 days, 1 hour left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question