Skip to content
New issue

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

练习7.32 私有成员screens 未定义 #76

Open
bigOK666 opened this issue Feb 19, 2021 · 0 comments
Open

练习7.32 私有成员screens 未定义 #76

bigOK666 opened this issue Feb 19, 2021 · 0 comments

Comments

@bigOK666
Copy link

在Window_mgr中的私有成员screens未定义,会导致成员函数clear中的s未定义。
Screen &s = screens[i];//screens未定义

在Window_mgr::clear定义前定义私有成员screens:Window_mgr::Window_mgr():screens{ Screen(8, 5, ' ') }{}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant