C++ 2013 for C# Developers by Dean C. Wills

C++ 2013 for C# Developers by Dean C. Wills

Author:Dean C. Wills
Language: eng
Format: epub
Publisher: Apress, Berkeley, CA


Unary Operators

CLI unary operations have the following format:

static type operator op ( type a)

We’ll use the following operator in our class:

Complex conjugation:

static Complex operator ∼ (Complex a);

Binary Operators

CLI binary operations have the following format:

static type operator op ( type a, type b)

We’ll use these operators in our class:

Addition:

static Complex operator + (Complex a, Complex b);

Subtraction:

static Complex operator - (Complex a, Complex b);

Multiplication:

static Complex operator * (Complex a, Complex b);

Division by double:

static Complex operator / (Complex a, double b);

Division by complex:

static Complex operator / (Complex a, Complex b);



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.