12-22 1,621 views
http://www.runoob.com/cprogramming/c-data-types.html
http://www.runoob.com/go/go-data-types.html
https://gist.github.com/zchee/b9c99695463d8902cd33
https://www.cnblogs.com/majianguo/p/7650059.html
https://blog.nuxui.com/archives/561.html
http://www.cplusplus.com/reference/cstdint/
https://sites.uclouvain.be/SystInfo/usr/include/stdint.h.html
https://en.wikipedia.org/wiki/C_data_types
Java 基本数据类型
#ifndef __TENON_TYPES__
#define __TENON_TYPES__
typedef void t_void;
typedef char t_char; // 1
typedef wchar_t t_wchar; // 2
typedef unsigned char t_byte; // 1
typedef int t_int; // 2 or 4
typedef char t_int8; // 1
typedef unsigned char t_uint8; // 1
typedef short t_int16; // 2
typedef unsigned short t_uin16; // 2
typedef int t_int32; // 4
typedef unsigned int t_uint32; // 4
typedef long t_int64; // 8
typedef unsigned long t_uint64; // 8
typedef float t_float; // 4 字节 | 1.2E-38 到 3.4E+38 | 6 位小数
typedef float t_float32; // 4
typedef double t_float64; // 8
typedef double t_complex64; // 8 double | 8 字节 | 2.3E-308 到 1.7E+308 | 15 位小数
// typedef double double t_complex128; // 16 long double | 16 字节 | 3.4E-4932 到 1.1E+4932 | 19 位小数
typedef char *string;
// ====================================================================================================================
// Basic type redefinition
// ====================================================================================================================
// typedef void Void;
// typedef bool Bool;
// typedef char Char;
// typedef unsigned char UChar;
// typedef short Short;
// typedef unsigned short UShort;
// typedef int Int;
// typedef unsigned int UInt;
// typedef double Double;
// typedef float Float;
// #if !(__linux__)
// typedef signed char int8_t;
// typedef short int16_t;
// typedef int int32_t;
// typedef long long int64_t;
// #endif
// typedef unsigned char uint8_t;
// typedef unsigned short uint16_t;
// typedef unsigned int uint32_t;
// typedef unsigned long long uint64_t;
// // ====================================================================================================================
// // 64-bit integer type
// // ====================================================================================================================
// #ifdef _MSC_VER
// typedef __int64 Int64;
// #if _MSC_VER <= 1200 // MS VC6
// typedef __int64 UInt64; // MS VC6 does not support unsigned __int64 to double conversion
// #else
// typedef unsigned __int64 UInt64;
// #endif
// #else
// typedef long long Int64;
// typedef unsigned long long UInt64;
#endif //__TENON_TYPES__