mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-04 02:59:43 +08:00
fix: cpplint issues
This commit is contained in:
@@ -22,7 +22,7 @@ class Complex {
|
||||
// The imaginary value of the complex number
|
||||
double im;
|
||||
|
||||
public:
|
||||
public:
|
||||
/**
|
||||
* Complex Constructor which initialises the complex number which takes two
|
||||
* arguments.
|
||||
@@ -39,9 +39,7 @@ class Complex {
|
||||
*/
|
||||
explicit Complex(double x = 0.f, double y = 0.f, bool is_polar = false)
|
||||
: re(is_polar ? x * std::cos(y) : x),
|
||||
im(is_polar ? x * std::sin(y) : y) {
|
||||
;
|
||||
}
|
||||
im(is_polar ? x * std::sin(y) : y) { ; }
|
||||
|
||||
/**
|
||||
* Copy Constructor
|
||||
|
||||
Reference in New Issue
Block a user