printf 字符
| 類型名稱 | 其他名稱 | 字符 |
|---|---|---|
| int | signed | %d |
| unsigned int | unsigned | %u、%o、%x |
| _int8 | char | %c %c、%d、%u |
| unsigned _int8 | unsigned char | %c %c、%d、%u |
| _int16 | short、short int、signed short int | %hd |
| unsigned _int16 | unsigned short、unsigned short int | %hu、%ho、%hx |
| _int32 | signed、signed int、int | %d |
| unsigned _int32 | unsigned、unsigned int | %u、%o、%x |
| _int64 | long long、signed long long | %I64d |
| unsigned _int64 | unsigned long long | %I64u、%I64o、%I64x |
| bool | 無 | 無 |
| char | 無 | |
| signed char | 無 | %c %c、%d、%u |
| unsigned char | 無 | %c %c、%d、%u |
| short | short int、signed short int | %hd |
| unsigned short | unsigned short int、WORD | %hu、%ho、%hx |
| long | long int、signed long int | %ld |
| unsigned long | unsigned long int、DWORD | %lu、%lo、%lx |
| long long | 無 (但是相當於 _int64) | %I64d |
| unsigned long long | 無 (但是相當於 unsigned _int64) | %I64u、%I64o、%I64x |
| enum | 無 | 無 |
| 浮動 | 無 | %f、%e、%g |
| double | 無 | %lf、%le、%lg %f、%e、%g |
| 長雙精度 | 無 | %lf、%le、%lg %f、%e、%g |
留言
張貼留言