Skip to content

C语言知识

使用stdint.h

里面定义了uint8_t等变量, 这是C99标准的一个文件

^: 异或 0^0 = 0, 0^1 = 1, 1^0 = 1, 1^1 = 0

可以用来对某一个位进行翻转temp ^= 1<<6