C# Queue

时间:2021-06-14 23:32:11   收藏:0   阅读:43

 

 

private Queue<int> speedFBList = new Queue<int>(200);

private void UpdateQueue2Value(int nowValue)
        {

            if (speedFBList.Count > 200)
            {
                
                speedFBList.Dequeue();
                
            }

            
            speedFBList.Enqueue(nowValue);
            

        }

 

##################

原文:https://www.cnblogs.com/herd/p/14883423.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!