新手,调用问题

liao891219 liao891219 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
比如 我输入会员号。就能调用该会员的积分,。
custNO[0] = 4321;
custScore[0] = 4000;
custNO[1] = 6543;
custScore[1] = 5000;
进行购买打折
if (con.custScore[index] < 1000)
discount = 0.95;
else if (1000 <= con.custScore[index] && con.custScore[index] < 2000)
discount = 0.9;
else if (2000 <= con.custScore[index] && con.custScore[index] < 3000)
discount = 0.85;
else if (3000 <= con.custScore[index] && con.custScore[index] < 4000)
discount = 0.8;
else if (4000 <= con.custScore[index] && con.custScore[index] < 6000)
discount = 0.75;
else if (6000 <= con.custScore[index] && con.custScore[index] < 8000)
discount = 0.6;
怎么能得到 discount ?
请各位帮帮忙,尽量简单点。
...全文

相关推荐

评论 6
收藏 已收藏
分享
返回顶部
liao891219
Java 51,407 成员 86,130 内容