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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.