Link to home
Start Free TrialLog in
Avatar of lzha022
lzha022

asked on

how to printf ° in VC++

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
ASKER CERTIFIED SOLUTION
Avatar of rajeev_devin
rajeev_devin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lzha022
lzha022

ASKER

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.