標(biāo)題: 問一下各位16進(jìn)制數(shù)后加的cu是什么意思 [打印本頁]

作者: egsresrhtrhrtst    時(shí)間: 2023-4-17 17:51
標(biāo)題: 問一下各位16進(jìn)制數(shù)后加的cu是什么意思
問一下各位16進(jìn)制數(shù)后加的cu是什么意思
#define TIM_CHANNEL_1                      0x00000000U                          /*!< Capture/compare channel 1 identifier      */
#define TIM_CHANNEL_2                      0x00000004U                          /*!< Capture/compare channel 2 identifier      */
#define TIM_CHANNEL_3                      0x00000008U                          /*!< Capture/compare channel 3 identifier      */
#define TIM_CHANNEL_4                      0x0000000CU                          /*!< Capture/compare channel 4 identifier      *



作者: coody_sz    時(shí)間: 2023-4-17 18:36
U表示無符號(hào)吧。不是CU,C是前面的數(shù)字0x0000000C
作者: Hephaestus    時(shí)間: 2023-4-17 18:39
c是數(shù)字,具體等于幾不能告訴你,一下子告訴你了印象不深,u是unsigned的意思。
作者: li64331218    時(shí)間: 2023-4-17 22:44
Hephaestus 發(fā)表于 2023-4-17 18:39
c是數(shù)字,具體等于幾不能告訴你,一下子告訴你了印象不深,u是unsigned的意思。

哈哈,你真調(diào)皮
作者: xuyaqi    時(shí)間: 2023-4-18 09:22
16進(jìn)制數(shù)后加u,u就是unsigned,表示是無符號(hào),也就是表示無符號(hào)的16進(jìn)制數(shù)。




歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1