Complex(double real, double img) : real(real), img(img) {}

출처: http://itguru.tistory.com/202 [Programming IT]
Complex(double real, double img) : real(real), img(img) {}

출처: http://itguru.tistory.com/202 [Programming IT]
Complex(double real, double img) : real(real), img(img) {}

출처: http://itguru.tistory.com/202 [Programming IT]
Complex(double real, double img) : real(real), img(img) {}

출처: http://itguru.tistory.com/202 [Programming IT]
Complex(double real, double img) : real(real), img(img) {}

출처: http://itguru.tistory.com/202 [Programming IT]
Complex(double real, double img) : real(real), img(img) {}

출처: http://itguru.tistory.com/202 [Programming IT]
Complex(double real, double img) : real(real), img(img) {}

출처: http://itguru.tistory.com/202 [Progr
Complex(double real, double img) : real(real), img(img) {}

출처: http://itguru.tistory.com/202 [Programming IT]

Complex(double real, double img)

출처: http://itguru.tistory.com/202 [Programming IT]
Complex(double real, double img)

출처: http://itguru.tistory.com/202 [Programming IT]
Complex(double real, double img)

출처: http://itguru.tistory.com/202 [Programming IT]
Complex(double real, double img)

출처: http://itguru.tistory.com/202 [Programming IT]
Complex(double real, double img

출처: http://itguru.tistory.com/202 [Programming IT]
Complex(double real, double img

출처: http://itguru.tistory.com/202 [Programming IT]
Complex(double real, double img

출처: http://itguru.tistory.com/202 [Programming IT]
Complex(double real, double img

출처: http://itguru.tistory.com/202 [Programming IT]

#include <iostream>

using namespace std;


class Complex

{        private:

double real, img;


public:


Complex(double real, double img) : real(real), img(img) {}



클래스 생성자는 알겠는데 

: real(real), img(img) {}


이부분은 뭐에요


#include <iostream>
using namespace std;

class Complex
{
private:
double real, img;

public:
Complex(double real, double img) : real(real), img(img) {}


출처: http://itguru.tistory.com/202 [Programming IT]