- 博客(8)
- 收藏
- 关注
原创 输出马里奥
#include<iostream>#include<cstdio>using namespace std;int main(){cout<<" ******** "<<endl;cout<<" ************ "<<endl;cout<<" ####....#. "<<endl;cout<&...
2021-09-26 09:58:08 248 1
原创 加减乘除5
#include<iostream>#include<cstdio>using namespace std;int main(){ printf("%d\n",123+345); printf("%d\n",123-345); printf("%d\n",123*345); printf("%f\n",123.0/345); return 0;}
2021-09-25 12:01:43 75
原创 如何将整数十进制与其他进制进行相互转化
将十进制转化为二进制:将要转化的数字除以2的余数作为该数二进制的最后一位,所得的商继续除以2,所得余数作为该数二进制的倒数第二位,所得的商继续除以2,以此类推······当所得的商小于2时不再继续除以2,直接将所得的商作为该数二进制的第一位。例如将81转化为二进制:81/2=40······140/2=20······020/2=10······010/2=5······05/2=2······12/2=1······0故81转为二进制应为1010001将十进制转为四
2021-09-25 11:56:55 2600
原创 加减乘除4
#include<iostream>#include<cstdio>using namespace std;int main(){ printf("%d\n",123+345); printf("%d\n",123-345); printf("%d\n",123*345); printf("%f\n",123.0/345); return 0;}
2021-09-23 19:11:11 80
原创 2021-09-23加减乘除3
#include<iostream>#include<cstdio>using namespace std;int main(){ printf("%d\n",123+345); printf("%d\n",123-345); printf("%d\n",123*345); printf("%d\n",123/345); return 0;}
2021-09-23 14:19:15 104
原创 2021-09-23加减乘除2
#include<iostream>#include<cstdio>using namespace std;int main(){ double a=123; float b=345; cout<<123+345<<endl; cout<<123-345<<endl; cout<<123*345<<endl; cout<<a/b; ret...
2021-09-23 13:49:25 85
原创 2021-09-23加减乘除1
#include<iostream>#include<cstdio>using namespace std;int main(){ cout<<123+345<<endl; cout<<123-345<<endl; cout<<123*345<<endl; cout<<123/345<<endl; return 0;}
2021-09-23 13:23:48 103
原创 大v···
#include<iostream>#include<cstdio>using namespace std;int main(){ cout<<"v v"<<endl; cout<<" v v"<<endl; cout<<" v"; return 0;}
2021-09-23 13:08:01 124
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人