CComCurrency::operator/=

此运算符用于执行在 CComCurrency 对象的除法并将其分配结果。

const CComCurrency & operator /=(
   long nOperand 
);

参数

  • nOperand
    除数。

返回值

返回更新 CComCurrency 对象。如果该除数为0,断言失败将发生。

示例

CComCurrency cur(10, 5000);
cur /= 10;
ATLASSERT(cur == CComCurrency(1, 500));

要求

Header: atlcur.h

请参见

参考

CComCurrency选件类

CComCurrency::operator/

CComCurrency::operator +

CComCurrency::operator -

CComCurrency::operator *