Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit6d42eb3dd1e5f6e7856327fa82f9e1703641f979 (patch)
Author
 Maria Grozdeva <64608453+MariaGrozdeva@users.noreply.github.com>
2022-04-30 17:40:25 +0300
Committer
 GitHub <noreply@github.com>
2022-04-30 17:40:25 +0300
Files5df5d912742aad8382ac676bfa10f6c3d390033b
Object-oriented_programming_FMI-6d42eb3dd1e5f6e7856327fa82f9e1703641f979.tar
Object-oriented_programming_FMI-6d42eb3dd1e5f6e7856327fa82f9e1703641f979.tar.gz
Object-oriented_programming_FMI-6d42eb3dd1e5f6e7856327fa82f9e1703641f979.zip
Parentac64227b45c8ac3b096f3c43e64af6271cf90b66 (diff)
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;