Operator
语法:
1 |
!=, ==, &=, ^=, |=, ~, <<=, >>=, [] |
这些操作符都可以和bitsets一起工作。它们被这样定义:
- != 返回真如果两个bitset不相等。
- == 返回真如果两个bitset相等。
- &= 完成两个bitset间的与运算。
- ^= 完成两个bitset间的异或运算。
- |= 完成两个
- ~ 反置bitset (和调用 flip()类似)
- <<= 把bitset向左移动
- >>= 把bitset向右移动
- [x] 返回第x个位的引用
以下是操作符重载测试例:
当上述代码运行时,显示:
初始值:10010111
左移5位:11100000
右移5位:00000111
第 0位:1
第 1位:1
第 2位:1
第 3位:0
第 4位:0
第 5位:0
第 6位:0
第 7位:0
反置:11111000
bs3不等于bs4
bs3&=bs4过算:00000000
bs3^=bs4过算:01111000
bs3|=bs4过算:01111000
请按任意键继续. . .
You reported it adequately. fluconazole bnf
Terrific posts, Appreciate it! buy viagra online
You have made your stand very well!! cbd
Really a good deal of awesome tips! https://viagradocker.com/
You said it adequately.! wellbutrin xl
Wow many of great information. cheap viagra
With thanks. I like this! sildenafil without a doctor’s prescription
Amazing quite a lot of terrific advice. canadian pharmacies shipping to usa
Regards. I value it. viagra no prescription
Thanks! I enjoy it. buy viagra without a doctor prescription
Good material. Thanks! celex
Good material. With thanks. canadian drugs
Really loads of terrific info! amazon hemp oil
You stated this superbly. Is Prozac And Valium The Same
Valuable write ups. Kudos. side effects for modafinil
Tips effectively used!! https://viagradocker.com/
Nicely put, Many thanks! online canadian pharcharmy
Thank you. Ample write ups!
cbd oil
You reported this adequately. Escitalopram Order Online