源码简介: |
该系统模拟银行服务系统,通过 因为客户业务有存钱和取钱两种,所以我们用0和1来分别表示存和取;因为两个窗口前要排队,所以用链表实现的队列来表示排队的情况;对于每个客户的基本信息,我们创建Customer结构来实现对客户信息的处理;我们用随机函数rand()来实现对生活中客户存与取、钱数、处理时间等情况的模拟。-The system simulated banking system, through the business because customers get money saving and two, so we used to represent 0 and 1 storage and access as before to line up two windows, so the realization of the queue with a linked list to represent the line situation the basic information for each client, we create a structure to achieve the Customer handling of customer information we use the random function rand () to achieve the life of customer deposits and extraction, the amount of money, and so the simulation processing time.
|