⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 firsth.cpp

📁 这是一个四则运算的程序。可实现 任意两个数的四则运算。用 C++做的
💻 CPP
字号:
#include"firstH.h"
void show()
{
	cout<<"This is a project about +-*/"<<endl;
    cout<<"please input a,b:"<<endl;
}
void Addition(float a,float b)
{
	cout<<"a+b="<<a+b<<endl;
}
void Subtraction(float a,float b)
{
	cout<<"a-b="<<a-b<<endl;
}
void Multiplication(float a,float b)
{
	cout<<"a*b="<<a*b<<endl;
}
void Divition(float a,float b)
{
	if(b!=0)
		cout<<"a/b="<<a/b<<endl;
	else
		cout<<"error!"<<endl;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -