CPlusPlus
CPP: Use Friend Class To Split Task
There is a massive module in my project, it computes many data tasks, update UI, and is responsible for interaction style. I want to move the user interaction part to another viewer class, make the old module more lightweight. The structure of the module class looks like the following snippet. Read more…