We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C++ primer 5th Page 322.Exercise 8.12
Why didn’t we use in-class initializers in PersonInfo?
答案是
Cause we need a aggregate class here. so it should have no in-class initializers.
这里为什么需要aggregate class? 我觉得原因应该是没有必要这么做吧。
The text was updated successfully, but these errors were encountered:
。。书上的PersonInfo 就已经是aggregate class了。
PersonInfo
Sorry, something went wrong.
@Mooophy 我也看到这里了,为什么没有在 PersonInfo 类中使用类内初始化?
答案说我们需要聚合类,为什么需要聚合类呢?
這個情境下對 PersonInfo 做任何預設初始化應該都不合理? 給它一個預設號碼或名稱應該沒有意義
No branches or pull requests
C++ primer 5th Page 322.Exercise 8.12
答案是
这里为什么需要aggregate class?
我觉得原因应该是没有必要这么做吧。
The text was updated successfully, but these errors were encountered: