Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commitac1f55bef7b29ab77273513c6a2a7a859aaa6422 (patch)
Author
 Angel Dimitriev <angel_dimitriev@abv.bg>
2022-04-30 15:57:12 -0400
Committer
 GitHub <noreply@github.com>
2022-04-30 15:57:12 -0400
Files5df5d912742aad8382ac676bfa10f6c3d390033b
Object-oriented_programming_FMI-ac1f55bef7b29ab77273513c6a2a7a859aaa6422.tar
Object-oriented_programming_FMI-ac1f55bef7b29ab77273513c6a2a7a859aaa6422.tar.gz
Object-oriented_programming_FMI-ac1f55bef7b29ab77273513c6a2a7a859aaa6422.zip
Parentac64227b45c8ac3b096f3c43e64af6271cf90b66 (diff)
Parent6d42eb3dd1e5f6e7856327fa82f9e1703641f979 (diff)
Merge pull request #7 from MariaGrozdeva/patch-1
Update Complex.cpp
1 files changed, 1 insertions, 1 deletions
-rw-r--r--Sem. 08/Complex/Complex.cpp2
diff --git a/Sem. 08/Complex/Complex.cpp b/Sem. 08/Complex/Complex.cpp
index 9344f0a..5799619 100644
--- a/Sem. 08/Complex/Complex.cpp
+++ b/Sem. 08/Complex/Complex.cpp
@@ -24,7 +24,7 @@ Complex& Complex::operator-=(const Complex& other)
}
Complex& Complex::operator*=(const Complex& other)
{
- int oldReal = real;
+ double oldReal = real;
real = real*other.real - im*other.im;
im = oldReal*other.im + im * other.real;
return *this;