博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
算法C++ 先进先出队列银行排号系统STL库实现(第一章)
阅读量:199 次
发布时间:2019-02-28

本文共 496 字,大约阅读时间需要 1 分钟。

造轮子博客链接


代码实现

#include 
#include
using namespace std;int main(){
int temp,customers_count = 0; unsigned maxnumber = 10;//今天银行只接待10个人 queue
number_line; cout<<"bank only receive "<
<<" people today"<
>temp) {
if(temp == -1 || number_line.size() == maxnumber) {
if(number_line.size() == maxnumber) cout<<"sorry the customers are too many!please next day comes!"<

实现效果

在这里插入图片描述


在这里插入图片描述

转载地址:http://mfni.baihongyu.com/

你可能感兴趣的文章