강의

멘토링

커뮤니티

Inflearn Community Q&A

wchoi's profile image
wchoi

asked

Following and Learning C++ with Hong Jeong-mo

8.14 Nested types within a class

중요한 부분은 아니지만 강의 내용에 오타가 있습니다.

Written on

·

309

10

int main()

{

Fruit apple(APPLE);

if (apple.getType == APPLE) //강의 코드

        //if(apple.getType() == APPLE) 수정 후 코드

{

cout << "Apple" << endl;

}

return 0;

}

apple.getType은 compile eror를 발생시켜서  apple.getType()으로 수정해줘야 할것같습니다.

C++

Answer 3

0

왜 오류가 안났을까요...

0

오..감사합니다 한참 헤맸는데 ㅠ

 

0

저도 오류가 나서 고치긴 했는데 왜 강의에서는 오류가 안난거죠? ㅇㅅㅇ

wchoi's profile image
wchoi

asked

Ask a question