【c++基础】位域结构体

前言 code #include <iostream> typedef struct { unsigned int a : 5; unsigned int b : 3; } tBits; int main() { tBits aa; aa.a = 205; // 1100 1101 aa.b = 8

posted on 2023-06-30 17:37  鹅要长大  阅读(21)  评论(0编辑  收藏  举报

导航