88 89 90. C++ student homework

1. Application questions

1.1 Before Xiao Ming only focused on how to manage books

1.2 But there is another problem, because there are too many people, there is a phenomenon of jumping in the queue

1.3 Now press the guardrail to realize that you must queue up, and stipulate the principle of handling business according to the queue order

1.4 Please use reasonable codes and containers to simulate customer queuing phenomenon, and handle different business types of each customer reasonably

1.5 Business types include:

Leasing (handling business) buying (handling business) returning (handling business) leaving (that is, free reading does not require money) entering (direct release) and so on (currently only one team, exit)

1.6 Realize the interaction between a business processing logic and the library management system

1.7 Example:

If there is one more person in the queue randomly every few seconds, this person will be randomly assigned a business, and the customer service will handle the business of each person differently.

Guess you like

Origin blog.csdn.net/F_Heart/article/details/123880159