using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication70
{
class Program
{
static void Main(string[] args)
{
List<ConsoleKeyInfo> ckList = new List<ConsoleKeyInfo>();
int []a=new int [5];
for (int i = 0; i < 5; i++)
{
ckList.Add(Console.ReadKey());
Console.Write(" ");
}
Console.WriteLine("\n结果为:");
foreach (ConsoleKeyInfo ckInfo in ckList)
{
Console.Write("{0} ", ckInfo.KeyChar);
}
Console.ReadLine();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication70
{
class Program
{
static void Main(string[] args)
{
List<ConsoleKeyInfo> ckList = new List<ConsoleKeyInfo>();
int []a=new int [5];
for (int i = 0; i < 5; i++)
{
ckList.Add(Console.ReadKey());
Console.Write(" ");
}
Console.WriteLine("\n结果为:");
foreach (ConsoleKeyInfo ckInfo in ckList)
{
Console.Write("{0} ", ckInfo.KeyChar);
}
Console.ReadLine();
}
}
}