- 博客(1)
- 收藏
- 关注
原创 c++某商店开展买一送一活动,购买两件商品时,只需支付价格较高的商品的金额。要求程序在输入两个商品的价格后,输出所应支付的金额,请根据裁判程序编写函数cut,将代码补充完整。
#include using namespace std;//请在此处添加代码int cut(float x, float y){float max;max = (x > y) ? x : y;return max;}int main() {float a, b,max;cin >> a >> b;cut(a, b)=0;cout <&...
2020-03-19 14:06:43
5033
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人