我在ubuntu18.04上安装了Cisco数据包跟踪器,使用这个链接。,它在“客服会话”上运行得非常好,但没有登录到我的cisco帐户。每当我尝试登录并请求强制退出时,它都会抛出此错误:
./libcrypto.so.1.0.0: no version information available (required by ./PacketTracer7)
Floating point exception (core dumped)
我有两张桌子,一张是商品的,一张是折扣的。折扣表如下:
ID | Name | Percentage | Product Name Search Param
-----------------------------------------------------------
1 | Black Friday | 50 | a
2 | White Friday | 75 | b
产品表如下所示:
ID | Name | Price
--------------------------
1 | Shoes |
假设dis.text = 2,prc.text = 100,我使用的这些codes.It应该是net_prc.text =98,但它给了我-100。有人能告诉我为什么吗?我如何才能获得正确的折扣百分比??
private void net_prcTabChanged(object sender, EventArgs e)
{
int d;
int di;
int i;
d = Convert.ToInt32(dis.Text);
i = Convert.ToInt32(prc.Text);
我有以下表格:
discount table:
id
name
description
amount
discount_exception
id
from_date
to_date
discount_id (foreign key to discount table)
折扣例外表用于存储折扣对用户不可用的日期范围,因此不应显示折扣。请注意,discount和discount_exception之间存在1:M的关系。换句话说,一个折扣可以有很多例外。
现在,我编写SQL的方法是获取所有折扣,然后在数组中循环它们,并查询discount_exception表,以确定每个折扣是否在特定的日期范围内