几和计算器1.00.07
2025-05-28 21:16:49
发布于:浙江
1.00.00:圆柱内容
1.00.05:正方
1.00.07:病毒
X03作品,不要喷!
#include<bits/stdc++.h>
#include<Windows.h>
using namespace std;
//system("cls");
//MessageBox(NULL,,,MB_YESNO);
int xz;//选择
int cs;//使用次数
void jz(){//加载
for(int i=0;i<5;i++){
cout<<"加载当中(^_^)";
for(int i=0;i<6;i++){
cout<<".";
Sleep(100);
}
system("cls");
}
}
void zf(){//正方体
cout<<"正方形"<<endl;
cout<<"________________________"<<endl;
cout<<"1.体积"<<endl;
cout<<"2.面积"<<endl;
cout<<":";
cin>>xz;
system("cls");
jz();
if(xz==1){
double a;//半径,高。
string tydw;//统一单位。
cout<<"正方形-体积"<<endl;
cout<<"________________________"<<endl;
cout<<"边长:";
cin>>a;
cout<<endl;
cout<<"统一单位:";
cin>>tydw;
cout<<endl;
system("cls");
jz();
cout<<"正方形-体积"<<endl;
cout<<"________________________"<<endl;
cout<<"V="<<a*1.0*a*a<<tydw<<3<<endl;
cout<<"按任意键+回车退出:";
int wy;//无用
cin>>wy;
}else if(xz==2){
double a;//边长。
string tydw;//统一单位。
cout<<"正方形-面积"<<endl;
cout<<"________________________"<<endl;
cout<<"边长:";
cin>>a;
cout<<endl;
cout<<"统一单位:";
cin>>tydw;
cout<<endl;
system("cls");
jz();
cout<<"正方形-面积"<<endl;
cout<<"________________________"<<endl;
cout<<"S="<<a*6.0*a<<tydw<<2<<endl;
cout<<"按任意键+回车退出:";
int wy;//无用
cin>>wy;
}
}
void yz(){//圆柱体
cout<<"圆柱体"<<endl;
cout<<"________________________"<<endl;
cout<<"1.体积"<<endl;
cout<<"2.面积"<<endl;
cout<<"3.高度"<<endl;
cout<<":";
cin>>xz;
system("cls");
jz();
if(xz==1){
double r,h;//半径,高。
string tydw;//统一单位。
cout<<"圆柱体-体积"<<endl;
cout<<"________________________"<<endl;
cout<<"半径:";
cin>>r;
cout<<endl;
cout<<"高度:";
cin>>h;
cout<<endl;
cout<<"统一单位:";
cin>>tydw;
cout<<endl;
system("cls");
jz();
cout<<"圆柱体-体积"<<endl;
cout<<"________________________"<<endl;
cout<<"V="<<r*1.0*r*h*3.14<<tydw<<3<<endl;
cout<<"按任意键+回车退出:";
int wy;//无用
cin>>wy;
}else if(xz==2){
double r,h;//半径,高。
string tydw;//统一单位。
cout<<"圆柱体-面积"<<endl;
cout<<"________________________"<<endl;
cout<<"半径:";
cin>>r;
cout<<endl;
cout<<"高度:";
cin>>h;
cout<<endl;
cout<<"统一单位:";
cin>>tydw;
cout<<endl;
system("cls");
jz();
cout<<"圆柱体-面积"<<endl;
cout<<"________________________"<<endl;
cout<<"S="<<r*2.0*r*3.14+h*2.0*r*3.14<<tydw<<2<<endl;
cout<<"按任意键+回车退出:";
int wy;//无用
cin>>wy;
}else if(xz==3){
double r,v;//半径,高。
string tydw;//统一单位。
cout<<"圆柱体-高度"<<endl;
cout<<"________________________"<<endl;
cout<<"半径:";
cin>>r;
cout<<endl;
cout<<"体积:";
cin>>v;
cout<<endl;
cout<<"统一单位:";
cin>>tydw;
cout<<endl;
system("cls");
jz();
cout<<"圆柱体-高度"<<endl;
cout<<"________________________"<<endl;
cout<<"h="<<v*1.0/r/r/3.14<<tydw<<endl;
cout<<"按任意键+回车退出:";
int wy;//无用
cin>>wy;
}
}
void jm(){//界面
for(int i=3;i>=1;i--){
cout<<endl;
cout<<" ____ "<<endl;
cout<<" 几何 "<<endl;
cout<<" 计算器 "<<endl;
cout<<endl;
cout<<endl;
cout<<" 倒计时:"<<i<<endl;
Sleep(998);
system("cls");
}
jz();
}
int main(){
jm();
while(1){
cout<<"主页"<<endl;
cout<<"________________________"<<endl;
cout<<"1.正方体"<<endl;
Sleep(200);
cout<<"2.长方体"<<endl;
Sleep(200);
cout<<"3.圆柱体"<<endl;
Sleep(200);
cout<<"4.圆锥体"<<endl;
Sleep(200);
cout<<":";
cin>>xz;
jz();
system("cls");
if(cs>=50){
cout<<"快进!"<<endl;
cout<<"https://www.acgo.cn/application/1820438359598743552";
MessageBox(NULL,"是否进入","提示",MB_YESNO);
system("cls");
cout<<"不进是吧";
system("cls");
while(1){
MessageBox(NULL,"病毒","关注Let's go,AK!",MB_OK);
}
}
if(xz==4){
yz();
cs++;
}else if(xz==1){
zf();
cs++;
}
}
return 0;
}
197行
这里空空如也
有帮助,赞一个