Queue using Struct
Queue using Struct
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Structwithstackandqueue
{
class Program
{
struct StudentInfo
{
public string StdName;
public int StdID;
public Boolean StdGender;
}
break;
case "0":
if (StdQueue.Count == 0)
Console.WriteLine("No element is found");
else
{
StdQueue.Clear();
Console.WriteLine("All elements have been removed!");
}
break;
case "x":
Console.Beep(2000, 1000);
Console.WriteLine("See you later!");
break;
}
Console.ReadKey();
} while (C.ToLower() != "x");
Console.ReadKey();
}
}
}