Demo entry 6751519

1

   

Submitted by anonymous on Jun 25, 2018 at 06:13
Language: C++. Code size: 401 Bytes.

if (event.event_type == Event::EventEnter) {	// 顾客到达事件
			event.customer->wait_num = customer_queue.size();

			// 客户排队
			customer_queue.push(event.customer);

			// 排队客户超过3个,第3个服务台开放
			if (desk3.desk_status != Desk::StatusService) {
				if (customer_queue.size() > 3) {
					desk3.desk_status = Desk::StatusOpen;
				}
				else {
					desk3.desk_status = Desk::StatusClose;
				}
			}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).