using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication9
{
class Program
{
static void Main(string[] args)
{
string s ;
Queue<string> q = new Queue<string>();
while (true)
{
s = Console.ReadLine();
if (s.Length == 0)
break;
q.Enqueue(s);
}
string result = "";
while (q.Count >0)
{
result += q.Dequeue();
}
Console.WriteLine(result );
}
}
}
C#泛型类Queue
最新推荐文章于 2022-06-17 14:51:53 发布