离散数学,心中的痛

来源:互联网 发布:淘宝充qb充错帐号 编辑:程序博客网 时间:2024/05/17 00:50
离散数学一直没有能学好,这真是心中很难受的事情。今天写了一点简单的程序,居然没有能够一气呵成,比较丢脸。
enumTEST_STATE
{
       TEST_STATE_NORMAL=0x0,
       TEST_STATE_LOCALBLOCK=0x1,
       TEST_STATE_REMOTEBLOCK=0x2,
       TEST_STATE_BOTHBLOCK=0x3,
};
unsignedlongtest = 0;
voidBlockLocal()
{
       test=test|0x1;
}
voidUnblockLocal()
{
       test=~(~test|0x1);
}
voidBlockRemote()
{
       test=test|0x2;
}
voidUnblockRemote()
{
       test=~(~test|0x2);
}
 
原创粉丝点击