📜  c 创建 1 位值 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:58.143000             🧑  作者: Mango

代码示例1
// Remember, the data type of the member variable needs to be unsigned, 
// as you only need to store 0 and 1.

typedef struct foo
{
    unsigned x:1;
} foo;