- 2

Are there any other operators?

For example: x*x = x^2 Or: x*x = y => x = ?y .................

6th Jul 2016, 12:18 AM
Tien Thanh Nguyen
Tien Thanh Nguyen - avatar
2 Answers
+ 1
Hihi, I don't get anything
7th Jul 2016, 12:05 AM
Tien Thanh Nguyen
Tien Thanh Nguyen - avatar
0
Your first example could not work, because the ^ symbol is defined as bitwise XOR, use pow() in cmath library instead. In yoyr second example, in order to assign y to x*x, x*x must be an lvalue, which is not, it is either an rvalue or a xvalue, i dont know.
6th Jul 2016, 7:27 PM
Garme Kain
Garme Kain - avatar