typedef int8_t Sint8;
typedef uint8_t Uint8;
typedef int16_t Sint16;
typedef uint16_t Uint16;
typedef int32_t Sint32;
typedef uint32_t Uint32;
#ifdef SDL_HAS_64BIT_TYPE
typedef int64_t Sint64;
#ifndef SYMBIAN32_GCCE
typedef uint64_t Uint64;
Unsigned:表示無號,沒有負號,所以其範圍為正值
Singed:表示有號,有負號(一般沒有特別指名為 Unsigned皆為Singed)
Singed:表示有號,有負號(一般沒有特別指名為 Unsigned皆為Singed)
uint8 | 0 to 255 | Unsigned 8-bit integer |
uint16 | 0 to 65,535 | Unsigned 16-bit integer |
uint32 | 0 to 4,294,967,295 | Unsigned 32-bit integer |
uint64 | 0 to 18,446,744,073,709,551,615 | Unsigned 64-bit integer |
感謝分享,但uint8的範圍好像少打個5
回覆刪除蘇先生謝謝你的提醒 ^ ^
刪除您好像改名了ray謝謝您的提醒
刪除作者已經移除這則留言。
回覆刪除