What are several small problems worth analyzing in C++?
What are several small problems worth analyzing in C++? in view of this problem, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.
Here are three small questions that I think C++ Beginner should be able to answer or identify. I hope we can dig out more information through the topic, not just to solve the problem. My favorite words: the ability is limited, so as throwing a brick to attract jade, I hope to discuss together and point out mistakes.
In addition, I always encounter a problem that I feel it is necessary to record, so I write it down and talk about it, so each article may not be a single topic.
1. Let's look at a simple question first. There is the following inheritance class:
Class Person {public: void Walk () / / ordinary people's "walk" {cout