Cpp_Primer_Answers icon indicating copy to clipboard operation
Cpp_Primer_Answers copied to clipboard

练习7.32 私有成员screens 未定义

Open bigOK666 opened this issue 4 years ago • 0 comments

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

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

bigOK666 avatar Feb 19 '21 16:02 bigOK666