강의

멘토링

로드맵

Inflearn Community Q&A

heekim9871409's profile image
heekim9871409

asked

Let's learn C and C++ at the same time - Doodle Doodle's C/C++

Lesson 56. Creation and destruction of objects

56강에서 생성자 호출시 중괄호 쓰는 것

Written on

·

169

0

안녕하세요. 영상을 보며 C++을 공부하던 중에 궁금한 점이 있어 질문 드립니다.

마지막 끝날 때 쯤 또 다른 생성자 호출 방법으로 밑에와 같이 중괄호를 써서 초기화 하셨는데요. Dev C++에서는 돌아가지 않습니다. 또한 책에서도 중괄호로 쓰는 것을 본 적이 없구요. 제가 빠뜨린 것이 있나요?

Complex c4 = {2, 3};

Complex c5 = Complex {2, 3};

Complex c6 {2, 3};

C++c

Answer

This question is waiting for answers
Be the first to answer!
heekim9871409's profile image
heekim9871409

asked

Ask a question