#include<iostream> int main() { int a=1; int b=8; std::cout<<(~a)<<'\n'; std::cout<<(a<<1)<<'\n'; std::cout<<(a<<1|1)<<'\n'; std::cout<<(b>>3&1)<<'\n'; std::cout<<(b&-b)<<'\n';//求lowbit return 0; }
标签:std,main,运算,int,简单,include,cout From: https://www.cnblogs.com/ruoye123456/p/17035546.html