asked
Let's learn C and C++ at the same time - Doodle Doodle's C/C++
Lesson 57. Various ways to use constructors
Written on
·
212
0
여기서 bool equals()안에 왜 Exp b가 들어가는지를 모르겠습니다ㅠㅠ
Answer 1
1
강의를 찾아보지 못했으나 a.equals(b)를 보면 a와 b가 같은지 확인하기 위함으로 보입니다.
cout << (a.getvalue() == b.getvalue()) <<endl; 랑 같은 의미입니다