文章目录 Numericintunsigned intdoublefloat方法cmath方法 String方法 charbool Numeric int 4 bytes int i = 200000000; unsigned int 8 bytes只能是正数 unsigned int i = 3000000000; double 8 bytes float 4 bytes 方法 sizeof() 返回结果是 compiler dependent 的sizeof(int); 返回值是4. 意思是4bytes cout 只能返回6位精确度 setprecision(int) 设置cout接下来输出的数字精确到多少位需要 #include <iomanip>cout << setprecision(10); cmath方法 首先需要#include <cmath>pow(x, y);sqrt(x);abs(x);fmod(123.456, 3); 获取余数。内置的%只能取整数的余数 String 并不是 built in data type, 而是属于 standard library所以需要声明 #include <string> 或者 #include <iostream> 方法 substr(startIndex, amount);length();*Str 把 string 变成 TCHAR array (UE4) char 单引号built in data typechar tolower(char);bool islower(char); bool true的value是1false的value是0