问题标题: HEOS-小何**

0
0
已解决
何文烁
何文烁
中级守护
中级守护

heos 2023 Pro:

完全开源,付费操作**的敌人

#include<iostream>
#include<windows.h>
using namespace std;
void cls()
{
    system("cls");
}
void cad(int a,int b,char x)
{
	if(x=='+')
	{
		cout<<a+b;
	}
	else if(x=='-')
	{
		cout<<a-b;
	}
	else if(x=='/')
	{
		cout<<a/b;
	}
	else if(x=='*')
	{
		cout<<a*b;
	}
}
void COLOR(string a)
{
    if(a=="black")
    {
    	system("color 0F");
	}
	if(a=="blue_D")
	{
		system("color 1F");
	}
	if(a=="green")
	{
		system("color 2F");
	}
	if(a=="blue")
	{
		system("color 3F");
	}
	if(a=="red")
	{
		system("color 4F");
	}
}
int main()
{
    bool n=1;
    COLOR("blue_D");
    cout<<"			HEos 2023 Pro"<<endl;
    cout<<"		  	starting up.."<<endl;
    Sleep(2000);
    cls();
    COLOR("black");
    while(n)
    {
    cout<<"_________________________________"<<endl;
    cout<<"|           Hello!              |"<<endl;
    cout<<"|       1.  个**化              |"<<endl;
    cout<<"|       2.  计算器              |"<<endl;
	cout<<"|       3.He Word 2023          |"<<endl;
	cout<<"|       4.   关机               |"<<endl;
	cout<<"---------------------------------"<<endl;
	cout<<">";
	int a;
	cin>>a;
	if(a==2)
	{
	    cls();
		int n,m;
		char a;
		cin>>n>>a>>m;
		cad(n,m,a);
		Sleep(3000);
		cls();
	}
	else if(a==1)
	{
	    cls();
		cout<<"___________________________\n";
		cout<<"|       设置-个**化       |\n";
		cout<<"| ----------------------- |\n";
		cout<<"|选择您的桌面背景:        |\n";
		cout<<"|     1.black             |\n";
		cout<<"|     2.Deep blue         |\n";
		cout<<"|     3.blue              |\n";
		cout<<"|     4.Green             |\n";
		cout<<"|     5.red               |\n";
		cout<<"---------------------------\n";
		cout<<">";
		int g;
		cin>>g;
		if(g==1)COLOR("black") ;
		if(g==2)COLOR("blue_D");
		if(g==3)COLOR("blue");
		if(g==4)COLOR("Green");
		if(g==5)COLOR("red");
		cls();
	}
    if(a==4)
    {
        break;
    }
    if(a==3)
    {
        cls();
        cout<<" ___He word 2023 Beta___\n";
        cout<<"| he                    |\n";
        cls();
    }
    }
    return 0;
}

Word正在开发。

如有建议,可回复

何文烁在2023-07-15 10:12:13追加了内容

C He studio


0
已采纳
赵宇晨
赵宇晨
高级守护
高级守护

你的计算器我试了没有用,不知道是我的问题还是程序有问题,建议修改

0
蔡辰夕
蔡辰夕
新手启示者
新手启示者

啥都不是!!!****

0
0
我要回答