CComCurrency::operator *=
Pubblicato: aprile 2016
Questo operatore viene utilizzato per eseguire la moltiplicazione su un oggetto CComCurrency e per assegnare il risultato.
Sintassi
const CComCurrency & operator *=(
long nOperand
);
const CComCurrency & operator *=(
const CComCurrency & cur
);
Parametri
nOperand
Moltiplicatore.cur
L'oggetto CComCurrency utilizzata in un moltiplicatore.
Valore restituito
Restituisce l'oggetto aggiornato CComCurrency. In caso di errore, ad esempio un overflow, questo operatore chiama AtlThrow con un HRESULT che descrive l'errore.
Esempio
CComCurrency cur(10, 5000);
cur *= 2;
ATLASSERT(cur == CComCurrency(21, 0));
Requisiti
Header: atlcur.h
Vedere anche
CComCurrency Class
CComCurrency::operator *
CComCurrency::operator +
CComCurrency::operator -
CComCurrency::operator /