Solved

how to printf ° in VC++

Posted on 2006-06-15
2
779 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 50 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

803 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