#include <string>
#include <iostream>
#include <stdint.h>
int main(void) {
    int64_t n=5;
    std::string s=std::to_string(n); //http://www.cplusplus.com/reference/string/to_string/
    std::cout<<s;
    return 0;
}
Thu 02/14/2013 23:16:40.04||E:\prj\createfile\createfile-3.28\tests|>type "errto_string"
to_string.cpp: In function 'int main()':
to_string.cpp:6:16: error: 'to_string' is not a member of 'std'
 
-------------
Jim Michaels
Jmichae3@yahoo.com
JimM@RenewalComputerServices.com
http://RenewalComputerServices.com
http://JesusnJim.com (my personal site, has software)
---
IEC Units: Computer RAM & SSD measurements, microsoft disk size measurements (note: they will say GB or MB or KB or TB when it is IEC Units!):
[KiB] [MiB] [GiB] [TiB]
[2^10B=1,024^1B=1KiB]
[2^20B=1,024^2B=1,048,576B=1MiB]
[2^30B=1,024^3B=1,073,741,824B=1GiB]
[2^40B=1,024^4B=1,099,511,627,776B=1TiB]
[2^50B=1,024^5B=1,125,899,906,842,624B=1PiB]
SI Units: Hard disk industry disk size measurements:
[KB] [MB] [GB] [TB]
[10^3B=1,000B=1KB]
[10^6B=1,000,000B=1MB]
[10^9B=1,000,000,000B=1GB]
[10^12B=1,000,000,000,000B=1TB]
[10^15B=1,000,000,000,000,000B=1PB]