Recent Posts
목록전체 글 (351)
printf("ho_tari\n");
Complex3 (여러연산자)
#include #include "complex.h" int main() { Complex c1; // (0.0, 0.0i) //Complex c2(3.0); // (3.0, 0.0i) Complex c2 = 3.0; Complex c3(3.0, 4.0); // (3.0, 4.0i) Complex c4 = c3; // Complex c4(c3); //Complex c4; // default constructor //c4 = c3; // assignment. //c1.real(c3.real()); //c1.imag(c3.imag()); c1 = c3; // c1.operator = (c3) or operator = (c1, c3) // c1 = c2 = c3; // daisy-chain c1 += c2; ..
C++
2023. 8. 31. 11:51