> 其他 >
编程实现一简单的计算器.要求从键盘上输入两个浮点数,计算它们的加减乘除运算结果
C++
人气:418 ℃ 时间:2020-03-27 20:44:46
解答
#includeusing namespace std;class compute{public: compute(float a,float b){val1=a,val2=b;}; ~compute();private: float val1,val2;public: float add(); float sub(); float multi(); float div();};float com...
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版