C++ Programming
10-24-2009, 01:50 AM
With MS VC6.0 :
Can printf() and the other derivatives such as CString::Format() be made to produce comma thousand seperated formated numbers ?
I tried the following code but it does not seem to be supported:
long n = 4523123 ;
printf("%'ld", n) ;
Expected Result : 4,523,123
Can printf() and the other derivatives such as CString::Format() be made to produce comma thousand seperated formated numbers ?
I tried the following code but it does not seem to be supported:
long n = 4523123 ;
printf("%'ld", n) ;
Expected Result : 4,523,123