1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
//OUTPUT OF THE PROBLEM//
Performing /, = and << operators overloading.
x = y / z:
(8.22199, 6.39394) = (4.3, 8.2) / (3.3, 1.1)/*DIVISION DOESNT CALCULATE CORRECTLY*/
Performing /, = and << operators overloading with divisor is (0, 0).
x = y / l:
(1.#INF, 1.#INF) = (4.3, 8.2) / (0, 0)/* instead of (1.#INF, 1.#INF) IT SHOULD BE infinite*/
Performing /, = and << operators overloading with divisor is (0, 0.1).
x = y / m:
(82, 1.#INF) = (4.3, 8.2) / (0, 0.1)/* instead of 1.#INF it should be -43*/
Performing != and << operators overloading.
check x != k
(82, 1.#INF) != (2, 0)/* instead of 1.#INF it should be -43*/
Performing =, == and << operators overloading.
assign k to x by using x=k statement.
check x == k
/*HERE SHOULD BE ( 2, 0) == ( 2, 0) but doesnt come, the code is there in main */
Press any key to continue . . .
|