با عرض سلام و خسته نباشید خدمت کاربران وب سایت پروگرم 98 😉 در این مطلب آموزش پاک کردن یک Queue در #C را آماده کردم. انشاالله که این کد براتون مفید باشه.
خروجی این کد به این صورت است:
0
1
1
کد پاک کردن یک Queue در #C :
using System;
using System.Collections;
class MainClass
{
static void Main(string[] args)
{
Queue a = new Queue(10);
int x = 0;
a.Enqueue(x);
x++;
using System.Collections;
class MainClass
{
static void Main(string[] args)
{
Queue a = new Queue(10);
int x = 0;
a.Enqueue(x);
x++;