更新了许多

This commit is contained in:
OhFengGO
2023-08-23 21:52:51 +08:00
parent 971a1d91d6
commit fc324f936b
197 changed files with 6500 additions and 0 deletions

20
位运算符.cpp Normal file
View File

@ -0,0 +1,20 @@
#include <iostream>
#include <iomanip>
#include <cmath>
#include <cstdio>
using namespace std;
int main(){
int a,b,c,d,e,f,g,h;
cin >>a>>b;
c=a&b;
d=a|b;
e=a^b;
f=~a;
cout <<"a&b="<<c<<endl;
cout <<"a|b="<<d<<endl;
cout <<"a^b="<<e<<endl;
cout <<"~a="<<f<<endl;
cout <<"a<<b="<<(a<<b)<<endl;
cout <<"a>>b="<<(a>>b)<<endl;
return 0;
}