标签:位运算符 分享 运算符 png cout 异或运算 c++ 分享图片 its
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
while(cin>>a>>b)
{
cout<<(a&b)<<"\n";
cout<<(a|b)<<"\n";
cout<<(a^b)<<"\n";
cout<<(~a)<<" "<<(~b)<<"\n";
cout<<(a<<2)<<"\n";
cout<<(b>>2)<<"\n";
}
}
标签:位运算符 分享 运算符 png cout 异或运算 c++ 分享图片 its
原文地址:https://www.cnblogs.com/baccano-acmer/p/9845645.html